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

Don’t use getQueryPayload()

This will be removed from nbxmpp
parent cf60971b
Pipeline #8481 failed with stages
in 40 seconds
......@@ -47,7 +47,8 @@ def _fields_received(self, _nbxmpp_client, stanza):
is_dataform = True
else:
data = {}
for i in stanza.getQueryPayload():
query = stanza.getQuery()
for i in query.getChildren():
data[i.getName()] = i.getData()
else:
self._log.info('Error: %s', stanza.getError())
......
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