Fix isGroupV2 type error
This commit is contained in:
parent
4805226825
commit
906b949c47
1 changed files with 4 additions and 3 deletions
|
@ -654,9 +654,10 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
||||||
const conversation = this.getConversation();
|
const conversation = this.getConversation();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
groupName: conversation?.isGroupV2()
|
groupName:
|
||||||
? conversation.get('name')
|
conversation && isGroupV2(conversation.attributes)
|
||||||
: undefined,
|
? conversation.get('name')
|
||||||
|
: undefined,
|
||||||
AccessControlEnum: protobuf.AccessControl.AccessRequired,
|
AccessControlEnum: protobuf.AccessControl.AccessRequired,
|
||||||
RoleEnum: protobuf.Member.Role,
|
RoleEnum: protobuf.Member.Role,
|
||||||
ourConversationId,
|
ourConversationId,
|
||||||
|
|
Loading…
Reference in a new issue