Commit cf60971b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Don’t use getPayload()

This will be removed from nbxmpp
parent 4ac748d4
Pipeline #8449 failed with stages
in 3 minutes and 16 seconds
......@@ -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:
......@@ -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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment