plugin XEP-0329: fixed extra key serialisation before sending to bridge

This commit is contained in:
Goffi 2018-03-14 08:10:31 +01:00
commit 2e18724e7b

View file

@ -469,7 +469,7 @@ class XEP_0329(object):
def _serializeData(self, files_data):
for file_data in files_data:
for key, value in file_data.iteritems():
file_data[key] = unicode(value)
file_data[key] = json.dumps(value) if key in ('extra',) else unicode(value)
return files_data
def _listFiles(self, target_jid, path, extra, profile):