diff options
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index a224978f0e..be4c056871 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -290,9 +290,7 @@ void FacebookProto::DeleteContactFromServer(void *data) return; // Delete contact from server - HttpRequest *request = facy.deleteFriendRequest(id.c_str()); - http::response resp = facy.sendRequest(request); - + http::response resp = facy.sendRequest(facy.deleteFriendRequest(id.c_str())); if (resp.data.find("\"payload\":null", 0) != std::string::npos) { // If contact wasn't deleted from database MCONTACT hContact = ContactIDToHContact(id); @@ -324,8 +322,7 @@ void FacebookProto::AddContactToServer(void *data) return; // Request friendship - HttpRequest *request = facy.addFriendRequest(id.c_str()); - http::response resp = facy.sendRequest(request); + http::response resp = facy.sendRequest(facy.addFriendRequest(id.c_str())); if (resp.data.find("\"success\":true", 0) != std::string::npos) { MCONTACT hContact = ContactIDToHContact(id); |