core: use serialised dict for extra in messageNew and historyGet

This commit is contained in:
Goffi 2020-02-18 18:13:17 +01:00
commit 6a7d247754

View file

@ -759,10 +759,12 @@ class QuickApp(object):
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,):