From 3e4cf4a07d3ba872e2fbaa98cf472649d5cac429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 7 Jul 2018 18:28:43 +0200 Subject: [PATCH] Change nbxmpp event we use for XMLConsole --- gajim/common/connection.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index d5abf673d..6825ce117 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -510,12 +510,12 @@ class CommonConnection: def _event_dispatcher(self, realm, event, data): if realm == '': - if event == nbxmpp.transports_nb.DATA_RECEIVED: - app.nec.push_incoming_event(StanzaReceivedEvent(None, - conn=self, stanza_str=data)) - elif event == nbxmpp.transports_nb.DATA_SENT: - app.nec.push_incoming_event(StanzaSentEvent(None, conn=self, - stanza_str=data)) + if event == 'STANZA_RECEIVED': + app.nec.push_incoming_event(StanzaReceivedEvent( + None, conn=self, stanza_str=str(data))) + elif event == 'STANZA_SENT': + app.nec.push_incoming_event(StanzaSentEvent( + None, conn=self, stanza_str=str(data))) def change_status(self, show, msg, auto=False): if not msg: