From 81513eb7d8c74db6ac578ec8c125bfa1c6fd570b Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 22 Mar 2022 17:00:42 +0100 Subject: [PATCH] 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 --- sat/plugins/plugin_xep_0060.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sat/plugins/plugin_xep_0060.py b/sat/plugins/plugin_xep_0060.py index 5766efe3..5da0fbe2 100644 --- a/sat/plugins/plugin_xep_0060.py +++ b/sat/plugins/plugin_xep_0060.py @@ -1130,7 +1130,8 @@ class XEP_0060(object): ) -> 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,