Skip to content
Snippets Groups Projects
Commit d0f77586 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

clean common.contacts._contacts when we remove a contact. Fixes #1788

parent ff5fd608
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,8 @@ class Contacts:
return
if contact in self._contacts[account][contact.jid]:
self._contacts[account][contact.jid].remove(contact)
if len(self._contacts[account][contact.jid]) == 0:
del self._contacts[account][contact.jid]
def remove_jid(self, account, jid):
'''Removes all contacts for a given jid'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment