mobile: repeat group invitations don't duplicate chat preview (#1310)

This commit is contained in:
JRoberts
2022-11-07 12:08:37 +04:00
committed by GitHub
parent 4e8dcab020
commit 18677cec63
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -986,10 +986,7 @@ func processReceivedMsg(_ res: ChatResponse) async {
_ = m.upsertChatItem(cInfo, cItem)
}
case let .receivedGroupInvitation(groupInfo, _, _):
m.addChat(Chat(
chatInfo: .group(groupInfo: groupInfo),
chatItems: []
))
m.updateGroup(groupInfo) // update so that repeat group invitations are not duplicated
// NtfManager.shared.notifyContactRequest(contactRequest) // TODO notifyGroupInvitation?
case let .userAcceptedGroupSent(groupInfo, hostContact):
m.updateGroup(groupInfo)