From b067cb5f4dd97509448956205c41f96cce6f8473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 9 Nov 2015 09:10:43 +0000 Subject: Facebook: Disable marking contacts "on the phone" as it is not reliable anymore Added new hidden option "FetchMobile" (byte), which is default "0" (disabled), but you can set "1" to mark all contacts that are in json's array "mobile_friends" as "on the phone". Also you can set it to "2" to set MirVer based on some "c" field, but it is just guessed and not really correct - it was just internal test to try to distinguish between them to understand what the "c" field means. git-svn-id: http://svn.miranda-ng.org/main/trunk@15701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/process.cpp') diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 5bc32be1ff..8a3a88effa 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -57,7 +57,8 @@ void FacebookProto::ProcessBuddyList(void*) data += i->data->user_id + "%2C"; } - data += "&fetch_mobile=true"; + if (getByte(FACEBOOK_KEY_FETCH_MOBILE, 0) == 1) + data += "&fetch_mobile=true"; // data += "&additional_buddies[0]=" + some_user_id; // FIXME: I'm not sure what this is for // data += "&additional_buddies[1]=" + some_user_id; data += "&get_now_available_list=true"; -- cgit v1.2.3