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.
This commit is contained in:
Stephen Paul Weber 2024-02-13 22:07:46 -05:00
parent d3af15d623
commit ef5c9ac2be
No known key found for this signature in database
GPG key ID: D11C2911CE519CDE

View file

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