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
0cefb349
Commit
0cefb349
authored
Nov 13, 2014
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #106 from tevans/OF-179-PR
OF-179: Publish presence updates for group changes
parents
5bb42888
dbccdb1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
LocalMUCRoom.java
src/java/org/jivesoftware/openfire/muc/spi/LocalMUCRoom.java
+11
-4
No files found.
src/java/org/jivesoftware/openfire/muc/spi/LocalMUCRoom.java
View file @
0cefb349
...
...
@@ -2706,22 +2706,29 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener {
@Override
public
void
memberAdded
(
Group
group
,
Map
params
)
{
applyAffiliationChange
(
getRole
(),
new
JID
((
String
)
params
.
get
(
"member"
)),
null
);
applyAffiliationChange
AndSendPresence
(
new
JID
((
String
)
params
.
get
(
"member"
))
);
}
@Override
public
void
memberRemoved
(
Group
group
,
Map
params
)
{
applyAffiliationChange
(
getRole
(),
new
JID
((
String
)
params
.
get
(
"member"
)),
null
);
applyAffiliationChange
AndSendPresence
(
new
JID
((
String
)
params
.
get
(
"member"
))
);
}
@Override
public
void
adminAdded
(
Group
group
,
Map
params
)
{
applyAffiliationChange
(
getRole
(),
new
JID
((
String
)
params
.
get
(
"admin"
)),
null
);
applyAffiliationChange
AndSendPresence
(
new
JID
((
String
)
params
.
get
(
"admin"
))
);
}
@Override
public
void
adminRemoved
(
Group
group
,
Map
params
)
{
applyAffiliationChange
(
getRole
(),
new
JID
((
String
)
params
.
get
(
"admin"
)),
null
);
applyAffiliationChangeAndSendPresence
(
new
JID
((
String
)
params
.
get
(
"admin"
)));
}
private
void
applyAffiliationChangeAndSendPresence
(
JID
groupMember
)
{
List
<
Presence
>
presences
=
applyAffiliationChange
(
getRole
(),
groupMember
,
null
);
for
(
Presence
presence
:
presences
)
{
send
(
presence
);
}
}
@Override
...
...
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