From c7337f5d1c568480c0089a2f339ced424e27fd08 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 3 Jan 2006 15:08:21 +0000 Subject: [PATCH] don't remove the jid entry in _contacts[account] when we remove a contact --- src/common/contacts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/contacts.py b/src/common/contacts.py index 139b6e609..e0d77ac0b 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -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):