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
49f24a80
Commit
49f24a80
authored
Apr 28, 2014
by
Tom Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-544: Fix handling for MUC affiliation update
Handle each affiliation change item in the IQ stanza
parent
bb8c973f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
IQAdminHandler.java
...ava/org/jivesoftware/openfire/muc/spi/IQAdminHandler.java
+4
-4
No files found.
src/java/org/jivesoftware/openfire/muc/spi/IQAdminHandler.java
View file @
49f24a80
...
...
@@ -249,8 +249,7 @@ public class IQAdminHandler {
// The client is modifying the list of moderators/members/participants/outcasts
String
nick
;
String
target
;
boolean
hasAffiliation
=
itemsList
.
get
(
0
).
attributeValue
(
"affiliation"
)
!=
null
;
boolean
hasAffiliation
;
// Keep a registry of the updated presences
List
<
Presence
>
presences
=
new
ArrayList
<
Presence
>(
itemsList
.
size
());
...
...
@@ -259,8 +258,9 @@ public class IQAdminHandler {
for
(
Object
anItem
:
itemsList
)
{
try
{
item
=
(
Element
)
anItem
;
target
=
(
hasAffiliation
?
item
.
attributeValue
(
"affiliation"
)
:
item
.
attributeValue
(
"role"
));
affiliation
=
item
.
attributeValue
(
"affiliation"
);
hasAffiliation
=
affiliation
!=
null
;
target
=
(
hasAffiliation
?
affiliation
:
item
.
attributeValue
(
"role"
));
List
<
JID
>
jids
=
new
ArrayList
<
JID
>();
// jid could be of the form "full JID" or "bare JID" depending if we are
// going to change a role or an affiliation
...
...
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