fix(@desktop/communities): processing response from InviteUsers call

This commit is contained in:
Andrei Smirnov 2021-09-09 08:52:36 +03:00 committed by Iuri Matias
parent 40dd69ca80
commit d80034e0c4
1 changed files with 2 additions and 1 deletions

View File

@ -217,8 +217,9 @@ QtObject:
self.newMessagePushed() self.newMessagePushed()
let isGroupSelf = msg.fromAuthor == self.pubKey and msg.contentType == ContentType.Group let isGroupSelf = msg.fromAuthor == self.pubKey and msg.contentType == ContentType.Group
let isMyInvite = msg.fromAuthor == self.pubKey and msg.contentType == ContentType.Community
let isEdit = msg.editedAt != "0" or msg.contentType == ContentType.Edit let isEdit = msg.editedAt != "0" or msg.contentType == ContentType.Edit
if not channel.muted and not isEdit and not isGroupSelf: if not channel.muted and not isEdit and not isGroupSelf and not isMyInvite:
let isAddedContact = channel.chatType.isOneToOne and self.isAddedContact(channel.id) let isAddedContact = channel.chatType.isOneToOne and self.isAddedContact(channel.id)
self.messageNotificationPushed(msg.id, channel.communityId, msg.chatId, escape_html(msg.text), msg.contentType.int, channel.chatType.int, msg.timestamp, msg.identicon, msg.userName, msg.hasMention, isAddedContact, channel.name) self.messageNotificationPushed(msg.id, channel.communityId, msg.chatId, escape_html(msg.text), msg.contentType.int, channel.chatType.int, msg.timestamp, msg.identicon, msg.userName, msg.hasMention, isAddedContact, channel.name)