Commit 5407885d authored by HanzZ's avatar HanzZ

Do not send available presence as response to subscribed

parent 7ec58e00
......@@ -342,7 +342,7 @@ void RosterManager::handleSubscription(Swift::Presence::ref presence) {
break;
case Swift::Presence::Subscribed:
// onBuddyAdded(buddy);
break;
return;
// buddy is already there, so nothing to do, just answer
case Swift::Presence::Unsubscribe:
response->setType(Swift::Presence::Unsubscribed);
......@@ -397,7 +397,7 @@ void RosterManager::handleSubscription(Swift::Presence::ref presence) {
buddy->setSubscription(Buddy::Both);
handleBuddyChanged(buddy);
}
break;
return;
default:
return;
}
......
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