Commit eca7b458 authored by Tom Evans's avatar Tom Evans

OF-1023: Fire contactChanged/Deleted events

When a shared group is removed from a roster item, fire an update or
delete event to keep the corresponding Roster cache in sync.
parent 80386d5f
......@@ -1024,6 +1024,11 @@ public class Roster implements Cacheable, Externalizable {
} else {
item.setSubStatus(RosterItem.SUB_TO);
}
// Fire event indicating that a roster item has been updated
RosterEventDispatcher.contactUpdated(this, item);
} else {
// Fire event indicating that a roster item has been removed
RosterEventDispatcher.contactDeleted(this, item);
}
// Brodcast to all the user resources of the updated roster item
broadcast(item, false);
......@@ -1085,6 +1090,11 @@ public class Roster implements Cacheable, Externalizable {
}
}
}
// Fire event indicating that a roster item has been updated
RosterEventDispatcher.contactUpdated(this, item);
} else {
// Fire event indicating that a roster item has been removed
RosterEventDispatcher.contactDeleted(this, item);
}
// Brodcast to all the user resources of the updated roster item
broadcast(item, false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment