From a9e64fb65f4d87c26cec093c27072b64ed2cc017 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 27 Sep 2008 16:14:37 +0000 Subject: [PATCH] don't prevent removing contact iter in groupchat if there are pending event with an opened chat window. Fixes #4340 --- src/groupchat_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 194142395..b080748d5 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -1187,7 +1187,8 @@ class GroupchatControl(ChatControlBase): elif 'destroyed' in statusCode: # Room has been destroyed self.print_conversation(reason, 'info', tim) - if len(gajim.events.get_events(self.account, fake_jid)) == 0: + if len(gajim.events.get_events(self.account, jid=fake_jid, + types=['pm'])) == 0: self.remove_contact(nick) self.draw_all_roles() else: