Setting Away in GoogleTalk

Hi.

Connected to GoogleTalk.

I set away mode this way:

Presence presence = new Presence(away?Presence.Type.UNAVAILABLE:Presence.Type.AVAILABLE);

presence.setStatus(away ? getProperties().getIamAwayMessage() : null);

connection.sendPacket(presence);

The effect this has is that I become invisible when away is true. Instead of “Busy”.

Is this something you guys can fix? Or should I be using something else for setting “away”?

Thanks.

jclaim.sourceforge.net

I believe you would want something more along the lines of:

Presence presence = new Presence(away?Presence.Type.AWAY:Presence.Type.AVAILABLE);

/code

Hope that helps,

Alex

There is no AWAY in Presence.Type

My mistake, this is what I had meant:

Presence presence = new Presence(Presence.Type.AVAILABLE);

presence.setMode(Presence.Mode.AWAY);

/code

Cheers,

Alex