How and when can I lock jitsi room with lib-jitsi-meet?

I have tried to do it on JitsiMeetJS.events.conference.CONFERENCE_JOINED, but room.isModerator returns false at this moment. I want to lock room as soon as possible after the user joined to the room that he created.

I also have tried to wrap room.lock in setTimeout and isModerator return true and there are no errors, but another user can join to this room without the password.

When local user becomes a moderator, listen for JitsiConferenceEvents.USER_ROLE_CHANGED.

1 Like

Thank you! It’s worked)