Presence Indicator Image

Hey All,

I’m trying to build a rich presence plugin for the Spark IM Client. It basically works in that I can get and update presence data from various sources. However, the indicator light on the user’s client won’t change. All other clients show the change but the user whose status has changed sees no difference in the indicator light.

Example: if the little green light on the statusbar is on and the client starts a phone call, the status changes to “On Phone” the text changes to “On Phone” all other clients see that the user is on the phone with the corresponding change in the status indicator light, but the user’s light stays green.

Here is the section of code that appears problematic. Can anyone make a suggestion?

public void actionPerformed(ActionEvent e) {

if (e.getActionCommand().equalsIgnoreCase(“on phone”)) {

statusBar.setStatus(“On Phone”);

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

presence.setStatus(“On Phone”);

presence.setMode(Presence.Mode.away);

sessionManager.changePresence(presence);

statusBar.changeAvailability(presence);

}