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

Optimization - do not create roster item when receiving an unsubscription...

Optimization - do not create roster item when receiving an unsubscription request from an unknwon user. JM-590

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3535 b35dd754-fafc-0310-a699-88a17e54d16e
parent bbba018f
...@@ -223,9 +223,10 @@ public class PresenceSubscribeHandler extends BasicModule implements ChannelHand ...@@ -223,9 +223,10 @@ public class PresenceSubscribeHandler extends BasicModule implements ChannelHand
item = roster.getRosterItem(target); item = roster.getRosterItem(target);
} }
else { else {
if (Presence.Type.unsubscribed == type) { if (Presence.Type.unsubscribed == type || Presence.Type.unsubscribe == type) {
// Do not create a roster item when processing a confirmation of // Do not create a roster item when processing a confirmation of
// an unsubscription // an unsubscription or receiving an unsubscription request from
// an unknown user
return false; return false;
} }
item = roster.createRosterItem(target); item = roster.createRosterItem(target);
......
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