From 29eea2f1b17a413706e95e84a334a2b93892cf7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 21 Dec 2018 23:13:34 +0100 Subject: [PATCH] Check if event was not consumed Fixes #9096 --- gajim/gui_interface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 657361577..0b5ec76d4 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -1694,18 +1694,24 @@ class Interface: self.roster.open_event(account, fjid, event) elif type_ == 'gc-invitation': event = app.events.get_first_event(account, jid, type_) + if event is None: + return dialogs.InvitationReceivedDialog(account, event.room_jid, jid, event.password, event.reason, event.is_continued) app.events.remove_events(account, jid, event) self.roster.draw_contact(jid, account) elif type_ == 'subscription_request': event = app.events.get_first_event(account, jid, type_) + if event is None: + return dialogs.SubscriptionRequestWindow(jid, event.text, account, event.nick) app.events.remove_events(account, jid, event) self.roster.draw_contact(jid, account) elif type_ == 'unsubscribed': event = app.events.get_first_event(account, jid, type_) + if event is None: + return self.show_unsubscribed_dialog(account, event.contact) app.events.remove_events(account, jid, event) self.roster.draw_contact(jid, account)