JID group = super.build(protocol.getTo());
return this.room.build(group).allowed(context.jid(), RoomConfig.WHOISEXISTS) ? true : this.writeAndReturn(context, group);
}
private boolean writeAndReturn(JIDContext context, JID group) {
context.write(new Message().noneThread().body(this.body).muc(this.x).setType(MessageType.GROUPCHAT).setFrom(group.asStringWithBare()));
return true;
}