Problem of sending presence to new client

It seems that openfire doesn’t always send all presence of member in room to new client.

I have getOccupantsCount() called in custom Participant Listener, but sometimes it returns wrong value.

Because openfire doesn’t send presence of existing member in room.

In my case, there is only a member and i have checked “Broadcast Presence for:”.

What’s wrong?

I think that this is due to smack(