diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-15 23:07:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-15 23:07:44 +0300 |
commit | a261ff62611c6cf4f414184480890e1e46b7dc3c (patch) | |
tree | 2099e57fe18b6cb637aa918cb76c8cfea084c312 /protocols/Facebook | |
parent | 615afbd839b22a7a170c477481ef67e5603b9709 (diff) |
fix for order of operations
Diffstat (limited to 'protocols/Facebook')
-rw-r--r-- | protocols/Facebook/src/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index 2b80a4bcae..034d2b9873 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -137,8 +137,6 @@ int FacebookProto::RefreshContacts() JSONNode root; root << CHAR_PARAM("0", "user"); AsyncHttpRequest *pReq; - pReq->flags |= NLHRF_NODUMPSEND; - if (szCursor.IsEmpty()) { pReq = CreateRequestGQL(FB_API_QUERY_CONTACTS); root << INT_PARAM("1", FB_API_CONTACTS_COUNT); @@ -148,6 +146,7 @@ int FacebookProto::RefreshContacts() root << CHAR_PARAM("1", szCursor) << INT_PARAM("2", FB_API_CONTACTS_COUNT); } pReq << CHAR_PARAM("query_params", root.write().c_str()); + pReq->flags |= NLHRF_NODUMPSEND; pReq->CalcSig(); JsonReply reply(ExecuteRequest(pReq)); |