From 96bf76308fb1a06c70e95a96ac701fc305be1f32 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 23 Jan 2006 22:31:47 +0000 Subject: [PATCH] remove contact from gajim.contacts when we remove a transport so we don't TB --- src/roster_window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/roster_window.py b/src/roster_window.py index bd5111dc9..79dc6b785 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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):