Do not allow send to announcement only groups
This commit is contained in:
parent
5219cdf2c9
commit
b0203e8909
4 changed files with 46 additions and 5 deletions
|
@ -190,6 +190,14 @@ export async function sendStoryMessage(
|
|||
return;
|
||||
}
|
||||
|
||||
if (group.get('announcementsOnly') && !group.areWeAdmin()) {
|
||||
log.warn(
|
||||
'stories.sendStoryMessage: cannot send to an announcement only group as a non-admin',
|
||||
conversationId
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const groupTimestamp = timestamp + index;
|
||||
|
||||
const myId = window.ConversationController.getOurConversationIdOrThrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue