Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-03-29 16:02:55 +0300
committerdequis <dx@dxzone.com.ar>2017-03-29 16:02:55 +0300
commit8bd06316b71342cebeb0a3d9a40ea47a6bfc9d1c (patch)
tree8d38b352d4d08641e196db0a605babf1348a7ed3
parent36a3b7327d4eff15c40e694b8556dda0e8993067 (diff)
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--patches/11-fix-thread-list-query.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/patches/11-fix-thread-list-query.patch b/patches/11-fix-thread-list-query.patch
new file mode 100644
index 0000000..32ce76f
--- /dev/null
+++ b/patches/11-fix-thread-list-query.patch
@@ -0,0 +1,40 @@
+--- a/libpurple/protocols/facebook/api.c 2017-03-29 09:55:50.024456518 -0300
++++ b/libpurple/protocols/facebook/api.c 2017-03-29 09:59:36.546399711 -0300
+@@ -802,6 +802,7 @@
+ case FB_API_QUERY_THREAD:
+ name = "ThreadQuery";
+ break;
++ case FB_API_QUERY_SEQ_ID:
+ case FB_API_QUERY_THREADS:
+ name = "ThreadListQuery";
+ break;
+@@ -1089,7 +1090,7 @@
+ 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_http_query(api, FB_API_QUERY_SEQ_ID, bldr,
+ fb_api_cb_seqid);
+ } else {
+ fb_api_connect_queue(api);
+--- a/libpurple/protocols/facebook/api.h 2017-03-29 09:55:50.024456518 -0300
++++ b/libpurple/protocols/facebook/api.h 2017-03-29 09:57:34.278827392 -0300
+@@ -275,7 +275,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: