summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-09-01 21:17:10 +0000
committerRobert Pösel <robyer@seznam.cz>2015-09-01 21:17:10 +0000
commit62869feea2d58ccc8d585803305994b3fd529792 (patch)
tree68ff6d299690e0ba7d56282bfb313b5735e85bdd /protocols/FacebookRM/src/contacts.cpp
parent140039aa214f240421dc3b629d15d5ed506c72af (diff)
Facebook: Various fixes
* Use InterlockedIncrement for msgId * Remove old phstamp parameter and use fixed ttstamp instead * Use __req parameter in requests * Use __rev parameter with static value in requests (hopefully it's better than empty) git-svn-id: http://svn.miranda-ng.org/main/trunk@15139 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index 05afa3ed0c..0b94c31701 100644
--- a/protocols/FacebookRM/src/contacts.cpp
+++ b/protocols/FacebookRM/src/contacts.cpp
@@ -176,7 +176,7 @@ std::string FacebookProto::ThreadIDToContactID(const std::string &thread_id)
std::string data = "client=mercury";
data += "&__user=" + facy.self_.user_id;
data += "&fb_dtsg=" + facy.dtsg_;
- data += "&__a=1&__dyn=&__req=&ttstamp=" + facy.ttstamp();
+ data += "&__a=1&__dyn=&__req=&ttstamp=" + facy.ttstamp_;
data += "&threads[thread_ids][0]=" + utils::url::encode(thread_id);
std::string user_id;
@@ -267,7 +267,7 @@ void FacebookProto::LoadChatInfo(facebook_chatroom *fbc)
std::string data = "client=mercury";
data += "&__user=" + facy.self_.user_id;
data += "&fb_dtsg=" + facy.dtsg_;
- data += "&__a=1&__dyn=&__req=&ttstamp=" + facy.ttstamp();
+ data += "&__a=1&__dyn=&__req=&ttstamp=" + facy.ttstamp_;
std::string thread_id = utils::url::encode(fbc->thread_id);
@@ -424,7 +424,7 @@ void FacebookProto::DeleteContactFromServer(void *data)
query += "&fb_dtsg=" + facy.dtsg_;
query += "&uid=" + id;
query += "&__user=" + facy.self_.user_id;
- query += "&phstamp=" + facy.phstamp(query);
+ query += "&ttstamp=" + facy.ttstamp_;
std::string get_query = "norefresh=true&unref=button_dropdown&uid=" + id;
@@ -622,7 +622,7 @@ void FacebookProto::SendPokeWorker(void *p)
data += "&do_confirm=0";
data += "&fb_dtsg=" + facy.dtsg_;
data += "&__user=" + facy.self_.user_id;
- data += "&phstamp=" + facy.phstamp(data);
+ data += "&ttstamp=" + facy.ttstamp_;
// Send poke
http::response resp = facy.flap(REQUEST_POKE, &data);