mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Do not allow send to announcement only groups
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user