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
pull/977/head
manuroe 7 years ago committed by Hubert Chathi
parent 7cde3193e5
commit 0051c6a377

@ -248,6 +248,7 @@ On success, returns a JSON object with keys:
- `hash` (string): Required. The new hash value representing stored keys. See - `hash` (string): Required. The new hash value representing stored keys. See
`GET /room_keys/version/{version}` for more details. `GET /room_keys/version/{version}` for more details.
- `count` (number): Required. The new count of keys stored in the backup.
Error codes: Error codes:
@ -275,7 +276,8 @@ Result:
```javascript ```javascript
{ {
"hash": "abcdefghi" "hash": "abcdefghi",
"count": 10
} }
``` ```
@ -319,7 +321,8 @@ Result:
```javascript ```javascript
{ {
"hash": "abcdefghi" "hash": "abcdefghi",
"count": 10
} }
``` ```
@ -367,7 +370,8 @@ Result:
```javascript ```javascript
{ {
"hash": "abcdefghi" "hash": "abcdefghi",
"count": 10
} }
``` ```

Loading…
Cancel
Save