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 {
...
@@ -249,8 +249,7 @@ public class IQAdminHandler {
// The client is modifying the list of moderators/members/participants/outcasts
// The client is modifying the list of moderators/members/participants/outcasts
String
nick
;
String
nick
;
String
target
;
String
target
;
boolean
hasAffiliation
=
itemsList
.
get
(
0
).
attributeValue
(
"affiliation"
)
!=
boolean
hasAffiliation
;
null
;
// Keep a registry of the updated presences
// Keep a registry of the updated presences
List
<
Presence
>
presences
=
new
ArrayList
<
Presence
>(
itemsList
.
size
());
List
<
Presence
>
presences
=
new
ArrayList
<
Presence
>(
itemsList
.
size
());
...
@@ -259,8 +258,9 @@ public class IQAdminHandler {
...
@@ -259,8 +258,9 @@ public class IQAdminHandler {
for
(
Object
anItem
:
itemsList
)
{
for
(
Object
anItem
:
itemsList
)
{
try
{
try
{
item
=
(
Element
)
anItem
;
item
=
(
Element
)
anItem
;
target
=
(
hasAffiliation
?
item
.
attributeValue
(
"affiliation"
)
:
item
affiliation
=
item
.
attributeValue
(
"affiliation"
);
.
attributeValue
(
"role"
));
hasAffiliation
=
affiliation
!=
null
;
target
=
(
hasAffiliation
?
affiliation
:
item
.
attributeValue
(
"role"
));
List
<
JID
>
jids
=
new
ArrayList
<
JID
>();
List
<
JID
>
jids
=
new
ArrayList
<
JID
>();
// jid could be of the form "full JID" or "bare JID" depending if we are
// jid could be of the form "full JID" or "bare JID" depending if we are
// going to change a role or an affiliation
// 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