[Git][gajim/gajim][master] Change nbxmpp event we use for XMLConsole

Philipp Hörist gitlab at dev.gajim.org
Sat Jul 7 18:28:56 CEST 2018


Philipp Hörist pushed to branch master at gajim / gajim


Commits:
3e4cf4a0 by Philipp Hörist at 2018-07-07T18:28:43+02:00
Change nbxmpp event we use for XMLConsole

- - - - -


1 changed file:

- gajim/common/connection.py


Changes:

=====================================
gajim/common/connection.py
=====================================
--- 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:



View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3e4cf4a07d3ba872e2fbaa98cf472649d5cac429

-- 
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/3e4cf4a07d3ba872e2fbaa98cf472649d5cac429
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20180707/f66179db/attachment-0001.html>


More information about the Commits mailing list