summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-15 19:53:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-15 19:53:39 +0300
commitd2dab81d17eafa10fb55b675090f6110ff7f7930 (patch)
tree9622499649ccb0ddc98e88260342e41e7289343d /protocols/Facebook/src/server.cpp
parentefbd3e90b66f16d3aac1d99f15ce7f2f83477b4e (diff)
fixes #1012 (Facebook: option needed to load friends only)
Diffstat (limited to 'protocols/Facebook/src/server.cpp')
-rw-r--r--protocols/Facebook/src/server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp
index deca30a243..96f159f5de 100644
--- a/protocols/Facebook/src/server.cpp
+++ b/protocols/Facebook/src/server.cpp
@@ -137,6 +137,7 @@ int FacebookProto::RefreshContacts()
return iErrorCode; // unknown error
bool bNeedUpdate = false;
+ bool bLoadAll = m_bLoadAll;
for (auto &it : reply.data()["viewer"]["messenger_contacts"]["nodes"]) {
auto &n = it["represented_profile"];
@@ -145,7 +146,7 @@ int FacebookProto::RefreshContacts()
MCONTACT hContact;
if (id != m_uid) {
- bool bIsFriend = n["friendship_status"].as_mstring() == L"ARE_FRIENDS";
+ bool bIsFriend = bLoadAll || n["friendship_status"].as_mstring() == L"ARE_FRIENDS";
auto *pUser = FindUser(id);
if (pUser == nullptr) {