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

Fixes: #3579
This commit is contained in:
saledjenic 2021-09-22 21:08:50 +02:00 committed by GitHub
parent 4c1b47dae1
commit cdb06facdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,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())