Commit a38803fd authored by Tom Evans's avatar Tom Evans Committed by tevans

OF-586: Deliver event notifications once to each unique subscriber JID when...

OF-586: Deliver event notifications once to each unique subscriber JID when multiple subscription support is disabled

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13345 b35dd754-fafc-0310-a699-88a17e54d16e
parent 06583b52
......@@ -222,11 +222,16 @@ public class NodeAffiliate {
}
}
else {
// Affiliate should have at most one subscription so send the notification to
// the subscriber
// Affiliate should have at most one subscription per unique JID
if (!notifySubscriptions.isEmpty()) {
NodeSubscription subscription = notifySubscriptions.get(0);
List<JID> subs = new ArrayList<JID>();
for(NodeSubscription subscription: notifySubscriptions) {
JID sub = subscription.getJID();
if (!subs.contains(sub)) {
node.sendEventNotification(subscription.getJID(), notification, null);
subs.add(sub);
}
}
}
}
}
......
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