From 6ddbe0d66de5c6ef05c5bde9be9766eb23df1704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 14 Apr 2014 12:13:11 +0000 Subject: 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 --- protocols/FacebookRM/src/messages.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/FacebookRM/src/messages.cpp') 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; -- cgit v1.2.3