How to check room''s availability?

I have created one room using MultiUserChat, and sent the invitation to user2. If the room is closed before user2 accepts the invitation, it displays the message as “this room is locked from entry until configuration is confirmed.” in the room. At user2’‘s end im trying to get room’‘s status. I tried get the participants’’ count. But it only worked when the room is closed. If i havent closed the room, then the error 403 is generated at user2’'s end.

Yes, that’‘s a security violation probably, since you don’'t have owner status in that room.

Since there’‘s no way to “lock” the room’‘s state, you can’'t check if it still exists and then join (since the room might be closed between you checking it and joining).