Group Description: Render newlines, view button in change notification

This commit is contained in:
Scott Nonnenberg 2021-06-04 09:27:04 -07:00 committed by GitHub
parent 15678efb4d
commit 3956443f50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 93 additions and 28 deletions

View file

@ -643,7 +643,12 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
throw new Error('change is undefined');
}
const conversation = this.getConversation();
return {
groupName: conversation?.isGroupV2()
? conversation.get('name')
: undefined,
AccessControlEnum: protobuf.AccessControl.AccessRequired,
RoleEnum: protobuf.Member.Role,
ourConversationId,