XIFF - USER_AVAILABLE does not trigger on Connect/Login

Hello again,

I’m having some difficulties displaying presence online/offline when I first connect with my client.

I’ve traced everything down, and simply do not receive any USER_AVAILABLE roster event for my contacts when I log on, if they are already online.

The only way I have been able to have USER_AVAILABLE trigger, is if one of my contacts logs on AFTER I am already online.

Anyone know why this is?

Thanks in advance,



I just got a pb looking like yours.

In fact, on connection, I was getting the roster presence events before than the roster was loaded.

To solve this issue, I send now my presence stanza on “roster loaded” event.