Commit fd61a420 authored by Christian Schudt's avatar Christian Schudt

OF-804 Joining a locked MUC room should return <item-not-found/> instead of...

OF-804 Joining a locked MUC room should return <item-not-found/> instead of <recipient-unavailable/>
parent 60141ddf
......@@ -503,7 +503,8 @@ public class LocalMUCUser implements MUCUser {
sendErrorPacket(packet, PacketError.Condition.conflict);
}
catch (RoomLockedException e) {
sendErrorPacket(packet, PacketError.Condition.recipient_unavailable);
// If a user attempts to enter a room while it is "locked" (i.e., before the room creator provides an initial configuration and therefore before the room officially exists), the service MUST refuse entry and return an <item-not-found/> error to the user
sendErrorPacket(packet, PacketError.Condition.item_not_found);
}
catch (ForbiddenException e) {
sendErrorPacket(packet, PacketError.Condition.forbidden);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment