@Override
public RelationCascade update(JID master, JID slave) {
RosterRelation relation = this.ourRelation.ourRelation(master, slave).cast(RosterRelation.class);
// 激活则广播
if (relation.activate()) {
this.broadcastProtocol.broadcast(master, new IQ().setId(UUID.randomUUID().toString()).add(new Roster(new GroupItem(relation))).setType(ProtocolType.SET));
}
return this;
}