summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
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
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')
-rw-r--r--protocols/FacebookRM/src/messages.cpp8
-rw-r--r--protocols/FacebookRM/src/process.cpp1
-rw-r--r--protocols/FacebookRM/src/version.h2
3 files changed, 4 insertions, 7 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";
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 639fdee23d..0478857926 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -386,7 +386,6 @@ void FacebookProto::ProcessUnreadMessage(void *p)
if (!hChatContact)
hChatContact = ChatIDToHContact(room->thread_id);
- setTString(hChatContact, FACEBOOK_KEY_MESSAGE_ID, room->thread_id.c_str());
ForkThread(&FacebookProto::ReadMessageWorker, (void*)hChatContact);
delete it->second;
diff --git a/protocols/FacebookRM/src/version.h b/protocols/FacebookRM/src/version.h
index 33e28ff56f..37bb96716d 100644
--- a/protocols/FacebookRM/src/version.h
+++ b/protocols/FacebookRM/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 2
#define __RELEASE_NUM 5
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#include <stdver.h>