changeset 1241:921e9f2a97af

pages (chat): renamed `extra` argument to `extra_s` as it is now serialised
author Goffi <goffi@goffi.org>
date Fri, 14 Feb 2020 15:21:24 +0100
parents 14c0f666a93d
children 8f39d98416c5
files libervia/pages/chat/page_meta.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/chat/page_meta.py	Wed Jan 29 19:45:04 2020 +0100
+++ b/libervia/pages/chat/page_meta.py	Fri Feb 14 15:21:24 2020 +0100
@@ -3,13 +3,14 @@
 from sat.core.i18n import _
 from twisted.internet import defer
 from sat.core.log import getLogger
-
-log = getLogger(__name__)
 from sat.tools.common import data_objects
 from twisted.words.protocols.jabber import jid
 from libervia.server.constants import Const as C
 from libervia.server import session_iface
 
+
+log = getLogger(__name__)
+
 name = "chat"
 access = C.PAGES_ACCESS_PROFILE
 template = "chat/chat.html"
@@ -125,7 +126,7 @@
         template_data_update = {"msg": data_objects.Message((args))}
         target_jid = rdata["target"]
         identities = rdata["identities"]
-        uid, timestamp, from_jid_s, to_jid_s, message, subject, mess_type, extra, __ = (
+        uid, timestamp, from_jid_s, to_jid_s, message, subject, mess_type, extra_s, __ = (
             args
         )
         from_jid = jid.JID(from_jid_s)