this.relationContext = relationContext;
}
@Override
public AffiliationBroadcast broadcast(JID group, Room room, MucItem item, JIDContext invoker) {
JID jid = this.jidBuilder.build(item.getJid());
// 向MUC房客广播MUC JID所有资源岗位变更
for (Relation relation : this.relationContext.ourRelations(jid, group)) {
for (JID to : this.relationContext.whoSubscribedMe(group)) {
this.addressing.findOne(to, true).write(item.presence(room.pull(Dictionary.FIELD_AFFILIATION, String.class)).add(this.adder.add(new XUser(group, to, room.allowed(to, RoomConfig.WHOISEXISTS, null)).item(item.hidden(room.allowed(to, RoomConfig.WHOISALLOW, jid)).relation(relation.cast(MucRelation.class).affiliation(item.getAffiliation(), true)))).cast(XUser.class)));
}