I am using secure domain so only authenticated user becomes moderator but how to destroy the room when moderator leaves?? can give some direction to properly dispose the room and disconnect all the guests?
I don’t think this is possible today.
You can create a prosody module that can accomplish that.
In current prosody trunk there is an event
muc-occupant-left and on that event if in the muc the only participant left with role owner is the focus you can destroy the room, the clients will handle that, I think. I’m just not sure how jicofo will handle that at the moment.
i was thinking using like,
- listen to JitsiConferenceEvents.USER_LEFT
- check if the user left was moderator.
- refresh user browser if moderator left.
Yes it will work. Normally those stuff are handeled on the xmpp server, but it will work that way …