From 2e18724e7bcfa6e2cdf543d0be473babd17f763d Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 14 Mar 2018 08:10:31 +0100 Subject: [PATCH] plugin XEP-0329: fixed extra key serialisation before sending to bridge --- src/plugins/plugin_xep_0329.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin_xep_0329.py b/src/plugins/plugin_xep_0329.py index 40e36298..ea9aceea 100644 --- a/src/plugins/plugin_xep_0329.py +++ b/src/plugins/plugin_xep_0329.py @@ -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):