[epiphany/wip/sync: 33/52] 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: 33/52] sync-service: Set 'version' and 'appPackage' fields too when registering client
- Date: Wed, 5 Jul 2017 13:35:47 +0000 (UTC)
commit 1383b6e8f3c8a3afe551bcf37a4ca309e1fcda0a
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]