diff libervia/web/server/pages.py @ 1595:7941444c1671

pages: set `own_local_jid` to avoid confusion with `own_jid`: - `own_jid` is the real JID of the user. - `own_local_jid` is the JID used in chat, which can be real JID, or a room JID.
author Goffi <goffi@goffi.org>
date Wed, 13 Dec 2023 22:05:48 +0100
parents 291a7026cb2b
children
line wrap: on
line diff
--- a/libervia/web/server/pages.py	Wed Dec 13 22:03:49 2023 +0100
+++ b/libervia/web/server/pages.py	Wed Dec 13 22:05:48 2023 +0100
@@ -1415,6 +1415,8 @@
             profile=session_data.profile,
             tz_name=template_data["tz_name"]
         )
+        if session_data.jid is not None:
+            self.expose_to_scripts(request, own_jid=session_data.jid)
 
         uri = request.uri.decode()
         try: