Place announcement-only groups behind feature flag
This commit is contained in:
parent
dd0baf9ab4
commit
bf6c0ce7c0
3 changed files with 17 additions and 0 deletions
|
@ -81,6 +81,7 @@ import {
|
|||
} from '../state/selectors/message';
|
||||
import { Deletes } from '../messageModifiers/Deletes';
|
||||
import { Reactions, ReactionModel } from '../messageModifiers/Reactions';
|
||||
import { isAnnouncementGroupReady } from '../util/isAnnouncementGroupReady';
|
||||
|
||||
// TODO: remove once we move away from ArrayBuffers
|
||||
const FIXMEU8 = Uint8Array;
|
||||
|
@ -3016,6 +3017,10 @@ export class ConversationModel extends window.Backbone
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!isAnnouncementGroupReady()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const members = getConversationMembers(this.attributes);
|
||||
return members.every(conversationAttrs =>
|
||||
Boolean(conversationAttrs.capabilities?.announcementGroup)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue