Skip to content

Commit

Permalink
Use the new ThreadListQuery hash for seq id only, not for thread queries
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dequis committed Mar 29, 2017
1 parent 1629e2f commit 93a62d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion facebook/facebook-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
12 changes: 11 additions & 1 deletion facebook/facebook-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 93a62d3

Please sign in to comment.