diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-01-23 01:07:41 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-01-23 01:07:41 +0100 |
commit | 26890d819c469ffc7a01352d828eeaf659f82be8 (patch) | |
tree | a628deafb53be6887ebe6888f118d9c4bf2a00c4 /protocols/FacebookRM/src/proto.cpp | |
parent | 0151cac1704717e5eee6859e4d3b8eeb043d901f (diff) |
Facebook: Add option to make Pages always invisible (enabled by default)
FB Pages are not online or offline, they just are. And this options helps users to find them in their contact list easily.
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 0cb9fc7a37..8c63120cb4 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -375,6 +375,11 @@ int FacebookProto::GetInfo(MCONTACT hContact, int) } } + // If this contact is page, set it as invisible (if enabled in options) + if (getBool(FACEBOOK_KEY_PAGES_ALWAYS_ONLINE, DEFAULT_PAGES_ALWAYS_ONLINE) && fbu.type == CONTACT_PAGE) { + setWord(hContact, "Status", ID_STATUS_ONLINE); + } + CheckAvatarChange(hContact, fbu.image_url); return 1; |