From 8eebd2c26f147db8ac59c82fe9e42a72e330a95c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 7 Dec 2005 17:01:15 +0000 Subject: [PATCH] remove a useless test that introduced a bug: when we restore conversation we are not active tab yet (tab is not drawn yet), but we'll in some ms, so we can safely do systray.remove_jid() as we already removed the events from awaiting_messages --- src/tabbed_chat_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabbed_chat_window.py b/src/tabbed_chat_window.py index 6b03e849b..f3ed4b220 100644 --- a/src/tabbed_chat_window.py +++ b/src/tabbed_chat_window.py @@ -845,7 +845,7 @@ class TabbedChatWindow(chat.Chat): typ = 'pm' gajim.interface.roster.draw_contact(jid, self.account) - if jid == self.get_active_jid() and gajim.interface.systray_enabled: + if gajim.interface.systray_enabled: gajim.interface.systray.remove_jid(jid, self.account, typ) showOffline = gajim.config.get('showoffline') if (contact.show == 'offline' or contact.show == 'error') and \