# HG changeset patch # User Goffi # Date 1647964842 -3600 # Node ID 783d6dc87b80c525373557706461260dcc848029 # Parent e52de21873d3b7d589d4e748d4ac2b1921c9d2bc plugin XEP-0060: specify sender using `client.jid` in `subscribe`: this is necessary to do a subscription with a component managing a virtual JID (i.e. not the JID of the component itself, but the one linked to a account, see `SatXMPPComponent.getVirtualClient`). rel 364 diff -r e52de21873d3 -r 783d6dc87b80 sat/plugins/plugin_xep_0060.py --- a/sat/plugins/plugin_xep_0060.py Tue Mar 22 17:00:42 2022 +0100 +++ b/sat/plugins/plugin_xep_0060.py Tue Mar 22 17:00:42 2022 +0100 @@ -1130,7 +1130,8 @@ ) -> pubsub.Subscription: # TODO: reimplement a subscribtion cache, checking that we have not subscription before trying to subscribe subscription = await client.pubsub_client.subscribe( - service, nodeIdentifier, sub_jid or client.jid.userhostJID(), options=options + service, nodeIdentifier, sub_jid or client.jid.userhostJID(), options=options, + sender=client.jid.userhostJID() ) await self.host.trigger.asyncPoint( "XEP-0060_subscribe", client, service, nodeIdentifier, sub_jid, options,