diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-05 10:04:09 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-05 10:04:09 +0000 |
commit | bcd1e4170e3ab77e98f17b887e4cfe899add81c8 (patch) | |
tree | f0bb3ab76cbe8609e881cf09ef88d491096ddd58 /protocols/FacebookRM/src/communication.cpp | |
parent | b72e59934d6d3629e5d01572aff4516895439888 (diff) |
Facebook: Used mobile site for getting offline (unread) messages, which partially fixes receiving them.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5239 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index d56242bc01..c356c948df 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -244,6 +244,7 @@ DWORD facebook_client::choose_security_level(int request_type) // case FACEBOOK_REQUEST_ASYNC:
// case FACEBOOK_REQUEST_MARK_READ:
// case FACEBOOK_REQUEST_NOTIFICATIONS_READ:
+// case FACEBOOK_REQUEST_UNREAD_THREADS:
// case FACEBOOK_REQUEST_UNREAD_MESSAGES:
// case FACEBOOK_REQUEST_TYPING_SEND:
default:
@@ -284,6 +285,7 @@ int facebook_client::choose_method(int request_type) // case FACEBOOK_REQUEST_LOAD_FRIENDS:
// case FACEBOOK_REQUEST_LOAD_REQUESTS:
// case FACEBOOK_REQUEST_SEARCH:
+// case FACEBOOK_REQUEST_UNREAD_THREADS:
// case FACEBOOK_REQUEST_UNREAD_MESSAGES:
default:
return REQUEST_GET;
@@ -318,6 +320,7 @@ std::string facebook_client::choose_server(int request_type, std::string* data, case FACEBOOK_REQUEST_APPROVE_FRIEND:
case FACEBOOK_REQUEST_LOAD_REQUESTS:
case FACEBOOK_REQUEST_SEARCH:
+ case FACEBOOK_REQUEST_UNREAD_THREADS:
case FACEBOOK_REQUEST_UNREAD_MESSAGES:
return FACEBOOK_SERVER_MOBILE;
@@ -389,7 +392,7 @@ std::string facebook_client::choose_action(int request_type, std::string* data, return action;
}
- case FACEBOOK_REQUEST_UNREAD_MESSAGES:
+ case FACEBOOK_REQUEST_UNREAD_THREADS:
{
std::string action = "/messages/?folder=unread";
if (get_data != NULL) {
@@ -397,6 +400,15 @@ std::string facebook_client::choose_action(int request_type, std::string* data, }
return action;
}
+
+ case FACEBOOK_REQUEST_UNREAD_MESSAGES:
+ {
+ std::string action = "/messages/read/?";
+ if (get_data != NULL) {
+ action += *get_data;
+ }
+ return action;
+ }
case FACEBOOK_REQUEST_DELETE_FRIEND:
{
|