Reputation: 5058
I am using the python sleekxmpp library to do some work with gchat, my question is: how do I send a presence stanza so that other people see me as invisible (but still be logged on and able to send/receive presencce/messages? So far I have tried self.sendPresence(ppriority = "0", ptype="unavailable")
but that seems to stop my ability to receive other users presence stanzas.
Upvotes: 1
Views: 922
Reputation: 1110
You're stopping a bit short of properly setting up invisibility. After you send "unavailable" you need to send more data in jabber:iq:privacy stanzas, as described in XEP-0126 Invisibility. Once upon a time most clients used XEP-0018 Invisible Presence, but as XMPP became more defined it was realized that that method, though easier, was very non-standard.
The problem is you've told the server you really are unavailable, not just sneakily so.
Upvotes: 1