From d7c213fe59a648e44923edefd1257b31a46bd799 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 13 Feb 2024 15:06:11 -0500 Subject: [PATCH] Fix caps by setting up all items before presence Note that update_caps also sends presence by default, when broadcast=True --- slixfeed/xmpp/client.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index a3fecc4..388ec42 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -201,19 +201,17 @@ class Slixfeed(slixmpp.ClientXMPP): async def on_session_start(self, event): - self.send_presence() - await self['xep_0115'].update_caps(preserve=True) + profile.set_identity(self, 'client') + self.service_commands() + self.service_reactions() + await self['xep_0115'].update_caps() await self.get_roster() await XmppGroupchat.autojoin(self) - profile.set_identity(self, 'client') await profile.update(self) task.task_ping(self) # Service.commands(self) # Service.reactions(self) - - self.service_commands() - self.service_reactions() async def on_session_resumed(self, event):