I've debugged the code. The problem is in MultiUserChatServiceImpl:
private boolean canDiscoverRoom(MUCRoom room) {
// Check if locked rooms may be discovered
if (!allowToDiscoverLockedRooms && room.isLocked()) {
return false;
}
return room.isPublicRoom();
}
Can I change the last line to "return true" ??
XEP-0045 doesn't mention anything about, that room discovery is only restricted to public rooms.
It even says:
The room MUST return its identity and SHOULD return the features it supports