Don't render links (or link previews) for blocked or unapproved conversations
This commit is contained in:
parent
267ae80442
commit
8f1bb6f087
7 changed files with 105 additions and 33 deletions
|
@ -876,6 +876,11 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
|
||||
deletedForEveryone: this.get('deletedForEveryone') || false,
|
||||
bodyRanges: this.processBodyRanges(),
|
||||
|
||||
isMessageRequestAccepted: conversation
|
||||
? conversation.getAccepted()
|
||||
: true,
|
||||
isBlocked: Boolean(conversation?.isBlocked()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue