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-06-08 21:22:10 +0300
committerdequis <dx@dxzone.com.ar>2017-06-08 21:22:10 +0300
commit4ff47db340eec1a4ee6f63e6e0066738f2cff566 (patch)
treee50097470fc5c3bf356722c4c1c2b2555467749e
parent92f8a6e0d4335d2a568eead7fa1a74e95d9602aa (diff)
Change error message when sync_sequence_id is missing, for clarity
It was getting hard to distinguish between users who never managed to get the latest version of the plugin and users who are getting the error even with the newest version.
-rw-r--r--patches/14-sync-seq-error.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/14-sync-seq-error.patch b/patches/14-sync-seq-error.patch
new file mode 100644
index 0000000..70be5a6
--- /dev/null
+++ b/patches/14-sync-seq-error.patch
@@ -0,0 +1,26 @@
+--- a/libpurple/protocols/facebook/api.c 2017-06-08 15:02:12.965124587 -0300
++++ b/libpurple/protocols/facebook/api.c 2017-06-08 15:14:32.217748548 -0300
+@@ -1033,7 +1033,7 @@
+ }
+
+ values = fb_json_values_new(root);
+- fb_json_values_add(values, FB_JSON_TYPE_STR, TRUE,
++ fb_json_values_add(values, FB_JSON_TYPE_STR, FALSE,
+ "$.viewer.message_threads.sync_sequence_id");
+ fb_json_values_add(values, FB_JSON_TYPE_INT, TRUE,
+ "$.viewer.message_threads.unread_count");
+@@ -1049,7 +1049,13 @@
+ priv->sid = g_ascii_strtoll(str, NULL, 10);
+ priv->unread = fb_json_values_next_int(values, 0);
+
+- fb_api_connect_queue(api);
++ if (priv->sid == 0) {
++ fb_api_error(api, FB_API_ERROR_GENERAL,
++ _("Failed to get sync_sequence_id"));
++ } else {
++ fb_api_connect_queue(api);
++ }
++
+ g_object_unref(values);
+ json_node_free(root);
+ }