Commit 39d00f52 authored by Dave Cridland's avatar Dave Cridland

Merge pull request #481 from tevans/OF-1023

OF-1023: Fire contactChanged/Deleted events
parents f6f3df47 eca7b458
...@@ -1024,6 +1024,11 @@ public class Roster implements Cacheable, Externalizable { ...@@ -1024,6 +1024,11 @@ public class Roster implements Cacheable, Externalizable {
} else { } else {
item.setSubStatus(RosterItem.SUB_TO); 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 // Brodcast to all the user resources of the updated roster item
broadcast(item, false); broadcast(item, false);
...@@ -1085,6 +1090,11 @@ public class Roster implements Cacheable, Externalizable { ...@@ -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 // Brodcast to all the user resources of the updated roster item
broadcast(item, false); 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