[epiphany/wip/sync: 19/25] sync-service: Set 'version' and 'appPackage' fields too when registering client
- From: Gabriel Ivașcu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync: 19/25] sync-service: Set 'version' and 'appPackage' fields too when registering client
- Date: Sat, 10 Jun 2017 10:45:21 +0000 (UTC)
commit aefd96e74b9f597fa3d95b169f8b4f28a1fb1f8e
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 6c9301f..d1f299c 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]