User MUC rooms

Julia Zashchitina
Added almost 4 years ago


Could you please tell if there is a way in Tigase to programmatically get a list of MUC rooms user has joined?

Replies (4)


Added by Artur Hefczyc TigaseTeam almost 4 years ago

What you mean by getting a list of MUC rooms? Where? On the client side or on the server side? Or maybe from some external service?

Please provide more details about your use-case and requirements.

Added by Julia Zashchitina almost 4 years ago

Our external service needs to get from Tigase server a list of rooms that user is currently connected to by user JID.


Added by Bartosz Małkowski TigaseTeam almost 4 years ago

You can write ad-hoc command in Groovy.

You have to use "mucRepository" variable (type: tigase.muc.repository.IMucRepository) then getActiveRooms() and iterate on all and check if given JID is joined to any Room.

Added by Julia Zashchitina almost 4 years ago

Thank you for the reply.