Hi!
I am having some problems getting MUC presence to work correctly.
I have a MUC room and I have registered a ParticipantListener with muc.addParticipantListener:
muc.addParticipantListener(new PacketListener() {
public void processPacket(Packet packet) {
System.out.println(“Participant Listener evoked”);
}
}
The problem is that the callback to processPacket is only executed when someone joins the room, not when they leave.
With the debug information turned on, I can see that I receive a presence packet with type “unavailable”, but the callback is not evoked?
Sometimes it works just fine, but if I restart my application it stops working again.
I get the exact same behavior when using the ParticpantStatusListener with the “Joined” and “Left” callbacks?
Any help is much appreciated!
Cheers!