Skip to content

Commit 00fa5ee

Browse files
author
Lloyd Watkin
committed
Overwrite defaultAffiliation if we already have one. Fixes #69.
1 parent 68e70c2 commit 00fa5ee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/SubscribeSet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ public void process(Element elm, JID actorJID, IQ reqIQ, Element rsm)
155155
subscribingJid, request.getFrom(), defaultSubscription);
156156
channelManager.addUserSubscription(newSubscription);
157157

158+
if (null != possibleExistingAffiliation) {
159+
defaultAffiliation = possibleExistingAffiliation;
160+
}
158161
channelManager.setUserAffiliation(node, subscribingJid,
159162
defaultAffiliation);
160163
}

0 commit comments

Comments
 (0)