changeset 1543:f00497c00e38

pages (chat): fix `own_jid` exposure: `own_jid` is a `JID` instance, and must be casted to str to be exposed.
author Goffi <goffi@goffi.org>
date Thu, 06 Jul 2023 12:05:48 +0200
parents fb31d3dba0c3
children 9b451115e726
files libervia/web/pages/chat/page_meta.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/web/pages/chat/page_meta.py	Wed Jun 28 10:09:15 2023 +0200
+++ b/libervia/web/pages/chat/page_meta.py	Thu Jul 06 12:05:48 2023 +0200
@@ -100,7 +100,7 @@
     self.expose_to_scripts(
         request,
         room_subject=room_subject,
-        own_jid=own_jid,
+        own_jid=str(own_jid),
         target_jid=target_jid,
         chat_type=chat_type,
     )