summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-11-22 20:41:07 +0000
committerRobert Pösel <robyer@seznam.cz>2013-11-22 20:41:07 +0000
commit77acd5386af74aef621fc2b22cac7caec0ba19f1 (patch)
tree65693bcb37e5b7a26754b5f8d497c2a3ae5bf854 /protocols/FacebookRM
parent004ffa40c522d3d8ce825c8a190587f28d9e5420 (diff)
Facebook: Fixed loading offline messages from some contacts
git-svn-id: http://svn.miranda-ng.org/main/trunk@6958 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/process.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index f5807a512d..d6ecad05b1 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -328,15 +328,17 @@ void FacebookProto::ProcessUnreadMessage(void *p)
data += "&__a=1&__dyn=&__req=&ttstamp=0";
for (std::vector<std::string>::size_type i = 0; i < threads.size(); i++) {
+ std::string thread_id = utils::url::encode(threads[i]);
+
// request messages from thread
- data += "&messages[thread_ids][" + threads[i];
+ data += "&messages[thread_ids][" + thread_id;
data += "][offset]=" + utils::conversion::to_string(&offset, UTILS_CONV_SIGNED_NUMBER);
- data += "&messages[thread_ids][" + threads[i];
+ data += "&messages[thread_ids][" + thread_id;
data += "][limit]=" + utils::conversion::to_string(&limit, UTILS_CONV_SIGNED_NUMBER);
// request info about thread
data += "&threads[thread_ids][" + utils::conversion::to_string(&i, UTILS_CONV_UNSIGNED_NUMBER);
- data += "]=" + threads[i];
+ data += "]=" + thread_id;
}
resp = facy.flap(REQUEST_THREAD_INFO, &data);