From ef5c9ac2be22de0e05554ac0504e17da6572fd12 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 13 Feb 2024 22:07:46 -0500 Subject: [PATCH] Send presence from full JID, not bare JID It will end up from full jid anyway and this fixes the cache lookup of the caps hash so it uses the right one. --- slixfeed/xmpp/presence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slixfeed/xmpp/presence.py b/slixfeed/xmpp/presence.py index 387c5b6..6d59be8 100644 --- a/slixfeed/xmpp/presence.py +++ b/slixfeed/xmpp/presence.py @@ -18,7 +18,7 @@ class XmppPresence: def send(self, jid, status_message, presence_type=None, status_type=None): self.send_presence(pto=jid, - pfrom=self.boundjid.bare, + pfrom=self.boundjid, pshow=status_type, pstatus=status_message, ptype=presence_type)