plugin XEP-0060: move setting of pubsub_watching to profile_connecting so it's available early

This commit is contained in:
Goffi 2023-06-12 15:00:59 +02:00
commit 27f4dfee75

View file

@ -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")