Fix isGroupV2 type error

This commit is contained in:
Evan Hahn 2021-06-07 12:29:37 -05:00 committed by GitHub
parent 4805226825
commit 906b949c47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -654,7 +654,8 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
const conversation = this.getConversation(); const conversation = this.getConversation();
return { return {
groupName: conversation?.isGroupV2() groupName:
conversation && isGroupV2(conversation.attributes)
? conversation.get('name') ? conversation.get('name')
: undefined, : undefined,
AccessControlEnum: protobuf.AccessControl.AccessRequired, AccessControlEnum: protobuf.AccessControl.AccessRequired,