From 27f4dfee759c380929bf4b1e8b1c203e8dbae3b8 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 12 Jun 2023 15:00:59 +0200 Subject: [PATCH] plugin XEP-0060: move setting of `pubsub_watching` to `profile_connecting` so it's available early --- libervia/backend/plugins/plugin_xep_0060.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libervia/backend/plugins/plugin_xep_0060.py b/libervia/backend/plugins/plugin_xep_0060.py index 0176372f..a512baa5 100644 --- a/libervia/backend/plugins/plugin_xep_0060.py +++ b/libervia/backend/plugins/plugin_xep_0060.py @@ -324,8 +324,10 @@ class XEP_0060(object): client.pubsub_client = SatPubSubClient(self.host, self) return client.pubsub_client - async def profile_connected(self, client): + def profile_connecting(self, client): client.pubsub_watching = set() + + async def profile_connected(self, client): try: client.pubsub_service = jid.JID( self.host.memory.config_get("", "pubsub_service")