diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-04-14 12:13:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-04-14 12:13:11 +0000 |
commit | 6ddbe0d66de5c6ef05c5bde9be9766eb23df1704 (patch) | |
tree | 6d9f7386ffece0206f6fb6b5b0360236b67ad9f5 /protocols/FacebookRM/src/messages.cpp | |
parent | 73af3297ebf6253ce4bad65545391941a7c0f179 (diff) |
Facebook: Don't load "unread messages" which we received already (but didn't read them yet)
- this needs further optimalization
- also it makes FACEBOOK_KEY_MESSAGE_ID no longer resident
git-svn-id: http://svn.miranda-ng.org/main/trunk@8973 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index e7c6630642..1478aab8ca 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -176,6 +176,8 @@ void FacebookProto::ReadMessageWorker(void *p) if (mid == 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";
data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
data += "&__user=" + facy.self_.user_id;
|