comparison libervia/backend/plugins/plugin_xep_0060.py @ 4294:a0ed5c976bf8

component conferences, plugin XEP-0167, XEP-0298: add stream user metadata: A/V conference now adds user metadata about the stream it is forwarding through XEP-0298. This is parsed and added to metadata during confirmation on client side. rel 448
author Goffi <goffi@goffi.org>
date Tue, 06 Aug 2024 23:43:11 +0200
parents 3a550e9a2b55
children
comparison
equal deleted inserted replaced
4293:9447796408f6 4294:a0ed5c976bf8
1537 except AttributeError as e: 1537 except AttributeError as e:
1538 raise ValueError(_("Invalid result: {}").format(e)) 1538 raise ValueError(_("Invalid result: {}").format(e))
1539 try: 1539 try:
1540 return { 1540 return {
1541 jid.JID(s["jid"]): s["subscription"] 1541 jid.JID(s["jid"]): s["subscription"]
1542 for s in subscriptions_elt.elements((pubsub.NS_PUBSUB, "subscription")) 1542 for s in subscriptions_elt.elements(pubsub.NS_PUBSUB, "subscription")
1543 } 1543 }
1544 except KeyError: 1544 except KeyError:
1545 raise ValueError( 1545 raise ValueError(
1546 _("Invalid result: bad <subscription> element: {}").format(iq_elt.toXml) 1546 _("Invalid result: bad <subscription> element: {}").format(iq_elt.toXml)
1547 ) 1547 )