powered by Jive Software

Discovering whether a room was locked or if it was just created

Does anyone know how I can discover whether or not a room is locked/ was just created? There doesn’'t appear to be anyway through MultiUserChat, I then tried to catch the muc#user status code of “201” which is the indication that the room was just created but the MultiUserChat does not pass it along since it is “from” me. Anyone else have any other ideas?

Message was edited by:

AWenckus

AWenckus,

For creating a new room you should use MultiUserChat#create(String) which will throw an exception if the room already exists. Use MultiUserChat#join(…) when you know that the room exists and you want to just join.

Regards,

– Gato

For creating a new room you should use

MultiUserChat#create(String) which will throw an

exception if the room already exists. Use

MultiUserChat#join(…) when you know that the room

exists and you want to just join.

That makes sense.

thanks