remove contact from gajim.contacts when we remove a transport so we don't TB

This commit is contained in:
Yann Leboulanger 2006-01-23 22:31:47 +00:00
parent 18129610e0
commit 96bf76308f
1 changed files with 3 additions and 0 deletions

View File

@ -870,8 +870,11 @@ class RosterWindow:
gajim.log.debug(
'Removing contact %s due to unregistered transport %s'\
% (jid, contact.jid))
gajim.connections[account].unsubscribe(c.jid)
# Transport contacts can't have 2 resources
gajim.contacts.remove_jid(account, c.jid)
self.remove_contact(c, account)
gajim.contacts.remove_jid(account, contact.jid)
gajim.contacts.remove_contact(account, contact)
def on_rename(self, widget, iter, path):