core: use serialised dict for extra in messageNew and historyGet
This commit is contained in:
parent
13a4177c08
commit
6a7d247754
1 changed files with 33 additions and 19 deletions
|
|
@ -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,):
|
||||
|
|
|
|||
Loading…
Reference in a new issue