send roster push when buddy is removed

This commit is contained in:
Jan Kaluza 2011-09-27 15:49:25 +02:00
parent 7ec599cb50
commit 6d96d5725b

View file

@ -81,6 +81,10 @@ bool RosterResponder::handleSetRequest(const Swift::JID& from, const Swift::JID&
if (item.getSubscription() == Swift::RosterItemPayload::Remove) {
LOG4CXX_INFO(logger, from.toBare().toString() << ": Removing buddy " << buddy->getName());
onBuddyRemoved(buddy);
// send roster push here
Swift::SetRosterRequest::ref request = Swift::SetRosterRequest::create(payload, user->getJID().toBare(), user->getComponent()->getIQRouter());
request->send();
}
else {
LOG4CXX_INFO(logger, from.toBare().toString() << ": Updating buddy " << buddy->getName());