don't remove the jid entry in _contacts[account] when we remove a contact
This commit is contained in:
parent
787f253992
commit
c7337f5d1c
|
@ -131,10 +131,7 @@ class Contacts:
|
|||
return
|
||||
if contact in self._contacts[account][contact.jid]:
|
||||
self._contacts[account][contact.jid].remove(contact)
|
||||
# It was the last resource of this contact ?
|
||||
if not len(self._contacts[account][contact.jid]):
|
||||
del self._contacts[account][contact.jid]
|
||||
|
||||
|
||||
def remove_jid(self, account, jid):
|
||||
'''Removes all contacts for a given jid'''
|
||||
if not self._contacts.has_key(account):
|
||||
|
|
Loading…
Reference in New Issue