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


Commits:
cf60971b by lovetox at 2021-11-03T23:33:19+01:00
Don’t use getPayload()

This will be removed from nbxmpp

- - - - -


2 changed files:

- gajim/common/jingle_session.py
- gajim/common/modules/search.py


Changes:

=====================================
gajim/common/jingle_session.py
=====================================
@@ -439,8 +439,8 @@ def __on_transport_replace(self, stanza, jingle, error, 
action):
 
     def __on_session_info(self, stanza, jingle, error, action):
         # TODO: active, (un)hold, (un)mute
-        payload = jingle.getPayload()
-        if payload[0].getName() == 'ringing':
+        ringing = jingle.getTag('ringing')
+        if ringing is not None:
             # ignore ringing
             raise nbxmpp.NodeProcessed
         if self.state != JingleStates.ACTIVE:


=====================================
gajim/common/modules/search.py
=====================================
@@ -87,7 +87,7 @@ def _received_result(self, _nbxmpp_client, stanza):
                 for item in tag.getTags('item'):
                     # We also show attributes. jid is there
                     field = item.attrs
-                    for i in item.getPayload():
+                    for i in item.getChildren():
                         field[i.getName()] = i.getData()
                     data.append(field)
         else:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cf60971bc77fd578227770bf82f0c338b6a14c73

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cf60971bc77fd578227770bf82f0c338b6a14c73
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to