From 7b31cb56ded4ee55a67e93e4e5ab43cadb758a3e Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 13 Dec 2005 21:40:12 +0000
Subject: [PATCH] one more check to not TB: don't try to remove roster contact
 when it's about gc contact

---
 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 aa1335b4af..cfcc284dc6 100644
--- a/src/tabbed_chat_window.py
+++ b/src/tabbed_chat_window.py
@@ -875,7 +875,7 @@ def read_queue(self, jid):
 			gajim.interface.systray.remove_jid(jid, self.account, typ)
 		showOffline = gajim.config.get('showoffline')
 		if (contact.show == 'offline' or contact.show == 'error') and \
-			not showOffline:
+			not showOffline and typ == 'chat':
 			if len(gajim.contacts[self.account][jid]) == 1:
 				gajim.interface.roster.really_remove_contact(contact, self.account)
 
-- 
GitLab