Send empty roster as response to roster get

This commit is contained in:
Jan Kaluza 2011-03-30 14:05:41 +02:00
parent 07859ef393
commit 2378224278

View file

@ -37,7 +37,9 @@ RosterResponder::~RosterResponder() {
}
bool RosterResponder::handleGetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr<Swift::RosterPayload> payload) {
std::cout << "PAYLOAD\n";
// Get means we're in server mode and user wants to fetch his roster.
// For now we send empty reponse, but TODO: Get buddies from database and send proper stored roster.
sendResponse(from, id, boost::shared_ptr<RosterPayload>(new RosterPayload()));
return true;
}