summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src')
-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>