JID group = super.build(protocol.parent().getTo());
MucRelation relation = super.ourRelation(context.jid(), group).cast(MucRelation.class);
for (Item item : protocol.cast(XMucAdmin.class).getItem()) {
// 同Nickname多JID
for (JID jid : this.mapping.mapping(group.resource(item.getNick()))) {
if (ItemRole.parse(super.ourRelation(jid, group).cast(MucRelation.class).role()).contains(relation.role())) {
return this.writeAndReturn(context, protocol);
}
}
}
return true;