fix(@desktop/chat): Pending request disappear from the contacts list when blocked and unblocked
This commit is contained in:
parent
9559789030
commit
75b5a583dd
|
@ -679,9 +679,11 @@ method blockContact*(self: Module, publicKey: string) =
|
||||||
method onContactBlocked*(self: Module, publicKey: string) =
|
method onContactBlocked*(self: Module, publicKey: string) =
|
||||||
self.view.contactRequestsModel().removeItemById(publicKey)
|
self.view.contactRequestsModel().removeItemById(publicKey)
|
||||||
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=true)
|
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=true)
|
||||||
|
self.updateParentBadgeNotifications()
|
||||||
|
|
||||||
method onContactUnblocked*(self: Module, publicKey: string) =
|
method onContactUnblocked*(self: Module, publicKey: string) =
|
||||||
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=false)
|
self.view.chatsModel().blockUnblockItemOrSubItemById(publicKey, blocked=false)
|
||||||
|
self.onContactDetailsUpdated(publicKey)
|
||||||
|
|
||||||
method onContactDetailsUpdated*(self: Module, publicKey: string) =
|
method onContactDetailsUpdated*(self: Module, publicKey: string) =
|
||||||
if(self.controller.isCommunity()):
|
if(self.controller.isCommunity()):
|
||||||
|
|
Loading…
Reference in New Issue