Jordan
Jordan

Reputation: 5058

python sleekxmpp & gchat sending "invisible" presence

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

Answers (1)

A. R. Diederich
A. R. Diederich

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

Related Questions