don't prevent removing contact iter in groupchat if there are pending event with an opened chat window. Fixes #4340

This commit is contained in:
Yann Leboulanger 2008-09-27 16:14:37 +00:00
parent 32b583986f
commit a9e64fb65f
1 changed files with 2 additions and 1 deletions

View File

@ -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: