diff libervia/web/server/restricted_bridge.py @ 1619:a2cd4222c702

browser: Updates for new design: This patch add code to handle the new design for chat. New bridge method are used to invite users to MUC or get list of occupants. A new modules is used for components, with a first one for collapsible cards. rel 457
author Goffi <goffi@goffi.org>
date Sat, 12 Apr 2025 00:21:45 +0200
parents 4a9679369856
children
line wrap: on
line diff
--- a/libervia/web/server/restricted_bridge.py	Sat Oct 26 23:07:01 2024 +0200
+++ b/libervia/web/server/restricted_bridge.py	Sat Apr 12 00:21:45 2025 +0200
@@ -282,6 +282,30 @@
             "jingle_terminate", session_id, reason, reason_txt, profile
         )
 
+    async def muc_invite(
+        self, guest_jid_s: str, room_jid_s: str, options: dict[str, str], profile: str
+    ):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "muc_invite", guest_jid_s, room_jid_s, options, profile
+        )
+
+    async def muc_occupants_get(
+        self, room_jid_s: str, profile: str
+    ):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "muc_occupants_get", room_jid_s, profile
+        )
+
+    async def muc_join(
+        self, room_jid_s: str, nick: str, options: dict[str, str], profile: str
+    ):
+        self.no_service_profile(profile)
+        return await self.host.bridge_call(
+            "muc_join", room_jid_s, nick, options, profile
+        )
+
     async def ps_invite(
         self, invitee_jid_s, service_s, node, item_id, name, extra_s, profile
     ):