Join detection in MUC


I’d like to know how I should proceed to detect when a people in joining a room. I know I could maintain the list of who’s in and compare when I receive a presence packet but it’s seems a bit complicated (at least, it should be stupid to don’t use a specific command if exists), so I would like to know the best method to do that.

Thank you.


You will need to listen for presence packets and maintain a list yourself. You can see an example of that process by looking in the GroupChatRoom class of the Spark source code.


Ok thanks, it’s what I though…