Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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()
data.append(field)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment