summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-01-02 06:52:58 +0000
committerRobert Pösel <robyer@seznam.cz>2016-01-02 06:52:58 +0000
commitd6cbb026dfce2f834ed61c3e3b578cc594a22b05 (patch)
treef15bbd2e20c3a28da1b2924e3ea02b1a551d721a /protocols/FacebookRM/src/process.cpp
parentbc23edb7878995498fa89e37438cdbc77e2b93bf (diff)
Facebook: Try to use "m." version if "mbasic." fails
This should fix searching and loading friendship requests at login for users which internally gets "mbasic" (not "touch") version when requesting "m" version git-svn-id: http://svn.miranda-ng.org/main/trunk@15982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 6ec0683538..9f115394ab 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -1139,6 +1139,13 @@ void FacebookProto::ProcessFriendRequests(void*)
// Get notifications
http::response resp = facy.flap(REQUEST_LOAD_FRIENDSHIPS);
+ // Workaround not working "mbasic." website for some people
+ if (!resp.isValid()) {
+ // Remember it didn't worked and try it again (internally it will try "m." this time)
+ facy.mbasicWorks = false;
+ resp = facy.flap(REQUEST_LOAD_FRIENDSHIPS);
+ }
+
if (resp.code != HTTP_CODE_OK) {
facy.handle_error("friendRequests");
return;