From d2dab81d17eafa10fb55b675090f6110ff7f7930 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 15 May 2020 19:53:39 +0300 Subject: fixes #1012 (Facebook: option needed to load friends only) --- protocols/Facebook/src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Facebook/src/server.cpp') 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) { -- cgit v1.2.3