fix(@desktop/chat): system tags updated for add/remove contact

Fixes: #3579
This commit is contained in:
Sale Djenic 2021-09-22 18:30:29 +02:00
parent 4f7e899953
commit 70fa5df155
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ proc addContact*(self: ContactModel, id: string, accountKeyUID: string): string
proc removeContact*(self: ContactModel, id: string) =
let contact = self.getContactByID(id)
contact.systemTags.delete(contact.systemTags.find(contactAdded))
contact.systemTags.delete(contact.systemTags.find(contactRequest))
discard self.saveContact(contact)
self.events.emit("contactRemoved", Args())