[epiphany/wip/sync: 13/16] sync-service: Set 'version' and 'appPackage' fields too when registering client



commit bb0e5663e03d6c42ee93e7954f8b03162aee8c4c
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Mon Jun 5 17:16:26 2017 +0300

    sync-service: Set 'version' and 'appPackage' fields too when registering client

 lib/sync/ephy-sync-service.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/sync/ephy-sync-service.c b/lib/sync/ephy-sync-service.c
index 05577fe..90056dc 100644
--- a/lib/sync/ephy-sync-service.c
+++ b/lib/sync/ephy-sync-service.c
@@ -1377,6 +1377,8 @@ ephy_sync_service_register_client_id (EphySyncService *self)
   json_object_set_string_member (payload, "application", "Epiphany");
   json_object_set_string_member (payload, "fxaDeviceId",
                                  ephy_sync_service_get_secret (self, secrets[UID]));
+  json_object_set_string_member (payload, "version", VERSION);
+  json_object_set_null_member (payload, "appPackage");
   json_node_set_object (node, payload);
   payload_clear = json_to_string (node, FALSE);
   bundle = ephy_sync_service_get_key_bundle (self, "clients");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]