Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
39d00f52
Commit
39d00f52
authored
Jan 05, 2016
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #481 from tevans/OF-1023
OF-1023: Fire contactChanged/Deleted events
parents
f6f3df47
eca7b458
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Roster.java
src/java/org/jivesoftware/openfire/roster/Roster.java
+10
-0
No files found.
src/java/org/jivesoftware/openfire/roster/Roster.java
View file @
39d00f52
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment