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

This commit is contained in:
JRoberts authored and GitHub committed 2022-11-07 12:08:37 +04:00
1 parent 4e8dcab020
commit 18677cec63
2 files changed
+2 -5

No files matched your search

@@ -1035,7 +1035,7 @@ open class ChatController(var ctrl: ChatCtrl?, val ntfManager: NtfManager, val a
}
}
is CR.ReceivedGroupInvitation -> {
chatModel.addChat(Chat(chatInfo = ChatInfo.Group(r.groupInfo), chatItems = listOf()))
chatModel.updateGroup(r.groupInfo) // update so that repeat group invitations are not duplicated
// TODO NtfManager.shared.notifyGroupInvitation
}
is CR.UserAcceptedGroupSent -> {