Commit 291af23c authored by Chinmay Dani's avatar Chinmay Dani

Set affiliation to 'none' after removing registration from room.

Removing registration from room calls #addNone, which removes the requester
JID from all affiliation lists. But #applyAffiliationChange sets the affiliation
back to 'member' after it does not find the JID in any affiliation lists. It
should set the affiliation to 'none' before sending the updated presences.
parent ce156fed
...@@ -1831,7 +1831,7 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener { ...@@ -1831,7 +1831,7 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener {
} }
else { else {
newRole = isModerated() ? MUCRole.Role.visitor : MUCRole.Role.participant; newRole = isModerated() ? MUCRole.Role.visitor : MUCRole.Role.participant;
newAffiliation = MUCRole.Affiliation.member; newAffiliation = MUCRole.Affiliation.none;
} }
Log.info("New affiliation: " + newAffiliation); Log.info("New affiliation: " + newAffiliation);
try { try {
......
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