Commit cec7c04c authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Return an empry result instead of an error when no subscriptions were found. JM-1395

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10544 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1d220323
......@@ -850,11 +850,6 @@ public class PubSubEngine {
IQ reply = IQ.createResultIQ(iq);
Element replyChildElement = childElement.createCopy();
reply.setChildElement(replyChildElement);
if (subscriptions.isEmpty()) {
// User does not have any affiliation or subscription with the pubsub service
reply.setError(PacketError.Condition.item_not_found);
}
else {
Element affiliationsElement = replyChildElement.element("subscriptions");
// Add information about subscriptions including existing affiliations
for (NodeSubscription subscription : subscriptions) {
......@@ -872,7 +867,6 @@ public class PubSubEngine {
subElement.addAttribute("subid", subscription.getID());
}
}
}
// Send reply
router.route(reply);
}
......
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