diff sat_frontends/quick_frontend/quick_app.py @ 3170:39d7327583e1

core: use serialised dict for `extra` in messageNew and historyGet
author Goffi <goffi@goffi.org>
date Tue, 18 Feb 2020 18:13:17 +0100
parents 1cb232c9e845
children 84a94b385760
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_app.py	Fri Feb 14 15:18:52 2020 +0100
+++ b/sat_frontends/quick_frontend/quick_app.py	Tue Feb 18 18:13:17 2020 +0100
@@ -759,10 +759,12 @@
         groups = list(groups)
         self.contact_lists[profile].setContact(entity, groups, attributes, in_roster=True)
 
-    def messageNewHandler(self, uid, timestamp, from_jid_s, to_jid_s, msg, subject, type_,
-                          extra, profile):
+    def messageNewHandler(
+            self, uid, timestamp, from_jid_s, to_jid_s, msg, subject, type_, extra_s,
+            profile):
         from_jid = jid.JID(from_jid_s)
         to_jid = jid.JID(to_jid_s)
+        extra = data_format.deserialise(extra_s)
         if not self.trigger.point(
             "messageNewTrigger", uid, timestamp, from_jid, to_jid, msg, subject, type_,
             extra, profile=profile,):