From 0051c6a377ca9fa724f0848b6d2cb58dd1680660 Mon Sep 17 00:00:00 2001 From: manuroe Date: Thu, 7 Feb 2019 22:54:53 +0100 Subject: [PATCH] Key backup: Return {hash, count} for key upload requests This is this tuple that allows the client to check if it has locally all keys of the backup --- proposals/1219-storing-megolm-keys-serverside.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/proposals/1219-storing-megolm-keys-serverside.md b/proposals/1219-storing-megolm-keys-serverside.md index 069021c86..05c68520e 100644 --- a/proposals/1219-storing-megolm-keys-serverside.md +++ b/proposals/1219-storing-megolm-keys-serverside.md @@ -248,6 +248,7 @@ On success, returns a JSON object with keys: - `hash` (string): Required. The new hash value representing stored keys. See `GET /room_keys/version/{version}` for more details. +- `count` (number): Required. The new count of keys stored in the backup. Error codes: @@ -275,7 +276,8 @@ Result: ```javascript { - "hash": "abcdefghi" + "hash": "abcdefghi", + "count": 10 } ``` @@ -319,7 +321,8 @@ Result: ```javascript { - "hash": "abcdefghi" + "hash": "abcdefghi", + "count": 10 } ``` @@ -367,7 +370,8 @@ Result: ```javascript { - "hash": "abcdefghi" + "hash": "abcdefghi", + "count": 10 } ```