fix(@desktop/chat): Pending request disappear from the contacts list when blocked and unblocked

This commit is contained in:
mprakhov 2022-11-30 00:28:32 +02:00 committed by Mykhailo Prakhov
parent 9559789030
commit 75b5a583dd
1 changed files with 2 additions and 0 deletions

View File

@ -679,9 +679,11 @@ method blockContact*(self: Module, publicKey: string) =
method onContactBlocked*(self: Module, publicKey: string) =
self.view.contactRequestsModel().removeItemById(publicKey)
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=true)
self.updateParentBadgeNotifications()
method onContactUnblocked*(self: Module, publicKey: string) =
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=false)
self.onContactDetailsUpdated(publicKey)
method onContactDetailsUpdated*(self: Module, publicKey: string) =
if(self.controller.isCommunity()):