I can set my presence in normal chat without an issue, but how does one go about setting and recieving their presence in a Group chat. I have routine which lists out the participants.
When you send the #join message to a Chat you are sending an AVAILABLE presence to the room. When you send #leave to a Chat you are sending an UNAVAILABLE presence to the room.
If you want to send other type of presence (e.g. away, xa) you should send your own presence to the room.
That is exactly the question I am asking. When I set my presence in a normal chat it doesnt affect my presence in a chat room. Programmatically speaking, using the Smack library, what command I use to send a presence packet to a room.
Ie: for arguments sake:
Presence presence = new Presence(Presence.Mode.AWAY);