Commit f65250ed authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Presences are no longer being sent when a user retrieves his roster. JM-55


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@526 b35dd754-fafc-0310-a699-88a17e54d16e
parent d3c1d31b
......@@ -161,16 +161,6 @@ public class IQRosterHandler extends IQHandler implements ServerFeaturesProvider
// a presence probe from all contacts
deliverer.deliver(returnPacket);
returnPacket = null;
String username = sessionUser.getUsername();
Iterator items = cachedRoster.getRosterItems();
while (items.hasNext()) {
RosterItem cachedItem = (RosterItem)items.next();
if (cachedItem.getSubStatus() == RosterItem.SUB_BOTH
|| cachedItem.getSubStatus() == RosterItem.SUB_TO) {
presenceManager.probePresence(username, cachedItem.getJid());
}
}
}
else if (IQ.SET == type) {
......
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