Skip to content

Commit

Permalink
Clarify how to interpret missing one time key counts (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
uhoreg authored Jan 11, 2022
1 parent 2a5e33a commit 6fb6843
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/3636.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify how to interpret missing one-time key counts.
2 changes: 1 addition & 1 deletion content/client-server-api/modules/end_to_end_encryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ a way to identify the server's support for fallback keys.
| Parameter | Type | Description |
|----------------------------------|--------------------|------------------------------------------------------------------------------------------------------------------------|
| device_lists | DeviceLists | Optional. Information on e2e device updates. Note: only present on an incremental sync. |
| device_one_time_keys_count | {string: integer} | Optional. For each key algorithm, the number of unclaimed one-time keys currently held on the server for this device. |
| device_one_time_keys_count | {string: integer} | Optional. For each key algorithm, the number of unclaimed one-time keys currently held on the server for this device. If an algorithm is unlisted, the count for that algorithm is assumed to be zero. If this entire parameter is missing, the count for all algorithms is assumed to be zero. |
| device_unused_fallback_key_types | [string] | **Required.** The unused fallback key algorithms. |

`DeviceLists`
Expand Down
2 changes: 2 additions & 0 deletions data/api/client-server/keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ paths:
description: |-
For each key algorithm, the number of unclaimed one-time keys
of that type currently held on the server for this device.
If an algorithm is not listed, the count for that algorithm
is to be assumed zero.
example:
curve25519: 10
signed_curve25519: 20
Expand Down

0 comments on commit 6fb6843

Please sign in to comment.