diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-25 18:50:12 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-25 18:50:12 +0000 |
commit | 125a25c86eed41352d45eb8fb6f994f65700c3ec (patch) | |
tree | 7605c4763aaf26968c7e18b1a66bcab67e845b74 /protocols/FacebookRM/src/messages.cpp | |
parent | 9d4577f64db5cd58b2157d3bcccb972d774364de (diff) |
Facebook: Removed option to "Send 'Seen' info", not it is sent always (Facebook removed support for old request)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5484 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 3fe97730f5..b5fd264f95 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -169,29 +169,16 @@ void FacebookProto::ReadMessageWorker(void *p) HANDLE hContact = static_cast<HANDLE>(p);
- if (!getByte(FACEBOOK_KEY_MARK_READ, 1)) {
- // old variant - no seen info updated
- ptrA id( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID));
- if (id == NULL) return;
+ // mark message read (also send seen info)
+ ptrA mid( getStringA(hContact, FACEBOOK_KEY_MESSAGE_ID));
+ if (mid == NULL) return;
- std::string data = "action=chatMarkRead";
- data += "&other_user=" + std::string(id);
- data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
- data += "&lsd=&__user=" + facy.self_.user_id;
-
- facy.flap(REQUEST_ASYNC, &data);
- } else {
- // new variant - with seen info
- ptrA mid( getStringA(hContact, FACEBOOK_KEY_MESSAGE_ID));
- if (mid == NULL) return;
-
- std::string data = "ids[" + std::string(mid) + "]=true";
- data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
- data += "&__user=" + facy.self_.user_id;
- data += "&__a=1&__dyn=&__req=j&phstamp=0";
+ std::string data = "ids[" + std::string(mid) + "]=true";
+ data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
+ data += "&__user=" + facy.self_.user_id;
+ data += "&__a=1&__dyn=&__req=&ttstamp=0";
- facy.flap(REQUEST_MARK_READ, &data);
- }
+ facy.flap(REQUEST_MARK_READ, &data);
}
void FacebookProto::ParseSmileys(std::string message, HANDLE hContact)
|