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:
parent
32b583986f
commit
a9e64fb65f
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue