comparison 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
comparison
equal deleted inserted replaced
1618:5d9889f14012 1619:a2cd4222c702
280 self.no_service_profile(profile) 280 self.no_service_profile(profile)
281 return await self.host.bridge_call( 281 return await self.host.bridge_call(
282 "jingle_terminate", session_id, reason, reason_txt, profile 282 "jingle_terminate", session_id, reason, reason_txt, profile
283 ) 283 )
284 284
285 async def muc_invite(
286 self, guest_jid_s: str, room_jid_s: str, options: dict[str, str], profile: str
287 ):
288 self.no_service_profile(profile)
289 return await self.host.bridge_call(
290 "muc_invite", guest_jid_s, room_jid_s, options, profile
291 )
292
293 async def muc_occupants_get(
294 self, room_jid_s: str, profile: str
295 ):
296 self.no_service_profile(profile)
297 return await self.host.bridge_call(
298 "muc_occupants_get", room_jid_s, profile
299 )
300
301 async def muc_join(
302 self, room_jid_s: str, nick: str, options: dict[str, str], profile: str
303 ):
304 self.no_service_profile(profile)
305 return await self.host.bridge_call(
306 "muc_join", room_jid_s, nick, options, profile
307 )
308
285 async def ps_invite( 309 async def ps_invite(
286 self, invitee_jid_s, service_s, node, item_id, name, extra_s, profile 310 self, invitee_jid_s, service_s, node, item_id, name, extra_s, profile
287 ): 311 ):
288 self.no_service_profile(profile) 312 self.no_service_profile(profile)
289 return await self.host.bridge_call( 313 return await self.host.bridge_call(