summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-03-29 09:31:20 -0300
committerdequis <dx@dxzone.com.ar>2017-03-29 09:31:20 -0300
commit93a62d3b5c8f24efb02f72f4f539289c460442d7 (patch)
tree29af7c538d0b82b7e7e738acd67926bbaa3c178b
parent1629e2f0cfe072118c845e8f7a2fc22005723188 (diff)
downloadbitlbee-facebook-93a62d3b5c8f24efb02f72f4f539289c460442d7.tar.gz
Use the new ThreadListQuery hash for seq id only, not for thread queries
Since it's used for different things and parameters are all wrong with the newer query hash, but the seq id query doesn't use parameters.
-rw-r--r--facebook/facebook-api.c2
-rw-r--r--facebook/facebook-api.h12
2 files changed, 12 insertions, 2 deletions
diff --git a/facebook/facebook-api.c b/facebook/facebook-api.c
index 341ac19..4770264 100644
--- a/facebook/facebook-api.c
+++ b/facebook/facebook-api.c
@@ -1078,7 +1078,7 @@ fb_api_cb_mqtt_connect(FbMqtt *mqtt, gpointer data)
if (priv->sid == 0) {
bldr = fb_json_bldr_new(JSON_NODE_OBJECT);
fb_json_bldr_add_str(bldr, "1", "0");
- fb_api_http_query(api, FB_API_QUERY_THREADS, bldr, fb_api_cb_seqid);
+ fb_api_http_query(api, FB_API_QUERY_SEQ_ID, bldr, fb_api_cb_seqid);
} else {
fb_api_connect_queue(api);
}
diff --git a/facebook/facebook-api.h b/facebook/facebook-api.h
index 986a151..fa38d3d 100644
--- a/facebook/facebook-api.h
+++ b/facebook/facebook-api.h
@@ -286,7 +286,17 @@
* 17: profile_pic_medium_size
* 18: profile_pic_small_size
*/
-#define FB_API_QUERY_THREADS 10155268192741729
+#define FB_API_QUERY_THREADS 10153919752026729
+
+/**
+ * FB_API_QUERY_SEQ_ID:
+ *
+ * A variant of ThreadListQuery with sequence ID
+ *
+ * TODO: parameters.
+ */
+
+#define FB_API_QUERY_SEQ_ID 10155268192741729
/**
* FB_API_QUERY_XMA: