summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/messages.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-21 11:37:01 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-21 11:37:01 +0000
commit0129f9cbc4388c6525863818575aa839082c0690 (patch)
tree525a01af86d3bb940d9bd40fd2266eb53f370431 /protocols/FacebookRM/src/messages.cpp
parent5c10ac58c22baff74df49aba0fad31eef6b39fbb (diff)
Facebook: Hotfix for marking messages as read; version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@9269 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r--protocols/FacebookRM/src/messages.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp
index 64db139118..6875014eb9 100644
--- a/protocols/FacebookRM/src/messages.cpp
+++ b/protocols/FacebookRM/src/messages.cpp
@@ -176,13 +176,11 @@ void FacebookProto::ReadMessageWorker(void *p)
return;
// mark message read (also send seen info)
- ptrA mid( getStringA(hContact, FACEBOOK_KEY_MESSAGE_ID));
- if (mid == NULL)
+ ptrA tid( getStringA(hContact, FACEBOOK_KEY_TID));
+ if (tid == NULL)
return;
- // TODO: for multi-chat messages we might need to mark as read threadID and not messageID, but I'm not sure about that now...
-
- std::string data = "ids[" + utils::url::encode(std::string(mid)) + "]=true";
+ std::string data = "ids[" + utils::url::encode(std::string(tid)) + "]=true";
data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
data += "&__user=" + facy.self_.user_id;
data += "&__a=1&__dyn=&__req=&ttstamp=0";