diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-08-17 12:53:03 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-08-17 12:53:03 +0000 |
commit | d1ff6d1f09cc8f24993060d03e9e20cc855c2bb7 (patch) | |
tree | 435a273aa7abe1039eff8e1dc55c05c1d424fafc /protocols/FacebookRM/src/messages.cpp | |
parent | 0bb9ef2de2e7cf475ef1e4be81e9480dd3fc95d7 (diff) |
Facebook: Fix sending messages and other changed requests
git-svn-id: http://svn.miranda-ng.org/main/trunk@17189 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 5076730817..83fc2c410a 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -97,8 +97,9 @@ void FacebookProto::SendChatMsgWorker(void *p) post_data += "&ttstamp=" + facy.ttstamp_; post_data += "&__rev=" + facy.__rev(); post_data += "&threads[thread_ids][0]=" + utils::url::encode(data->chat_id); + post_data += "&__pc=PHASED:DEFAULT&__be=-1&__a=1"; - http::response resp = facy.flap(REQUEST_THREAD_INFO, &post_data); // NOTE: Request revised 1.9.2015 + http::response resp = facy.flap(REQUEST_THREAD_INFO, &post_data); // NOTE: Request revised 17.8.2016 tid = utils::text::source_get_value(&resp.data, 2, "\"thread_id\":\"", "\""); if (!tid.empty() && tid.compare("null")) @@ -164,10 +165,11 @@ void FacebookProto::SendTypingWorker(void *p) data += "&__req=" + facy.__req(); data += "&fb_dtsg=" + facy.dtsg_; - data += "&ttsamp=" + facy.ttstamp_; + data += "&ttstamp=" + facy.ttstamp_; data += "&__rev=" + facy.__rev(); + data += "&__pc=PHASED:DEFAULT&__be=-1&__a=1"; - http::response resp = facy.flap(REQUEST_TYPING_SEND, &data); // NOTE: Request revised 11.2.2016 + http::response resp = facy.flap(REQUEST_TYPING_SEND, &data); // NOTE: Request revised 17.8.2016 } delete typing; |