mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
Always list fallback key types in /sync (#10623)
This commit is contained in:
parent
3bcd525b46
commit
b62eba7705
2 changed files with 6 additions and 4 deletions
1
changelog.d/10623.bugfix
Normal file
1
changelog.d/10623.bugfix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Revert behaviour introduced in v1.38.0 that strips `org.matrix.msc2732.device_unused_fallback_key_types` from `/sync` when its value is empty. This field should instead always be present according to [MSC2732](https://github.com/matrix-org/matrix-doc/blob/master/proposals/2732-olm-fallback-keys.md).
|
|
@ -259,7 +259,8 @@ class SyncRestServlet(RestServlet):
|
||||||
# Corresponding synapse issue: https://github.com/matrix-org/synapse/issues/10456
|
# Corresponding synapse issue: https://github.com/matrix-org/synapse/issues/10456
|
||||||
response["device_one_time_keys_count"] = sync_result.device_one_time_keys_count
|
response["device_one_time_keys_count"] = sync_result.device_one_time_keys_count
|
||||||
|
|
||||||
if sync_result.device_unused_fallback_key_types:
|
# https://github.com/matrix-org/matrix-doc/blob/54255851f642f84a4f1aaf7bc063eebe3d76752b/proposals/2732-olm-fallback-keys.md
|
||||||
|
# states that this field should always be included, as long as the server supports the feature.
|
||||||
response[
|
response[
|
||||||
"org.matrix.msc2732.device_unused_fallback_key_types"
|
"org.matrix.msc2732.device_unused_fallback_key_types"
|
||||||
] = sync_result.device_unused_fallback_key_types
|
] = sync_result.device_unused_fallback_key_types
|
||||||
|
|
Loading…
Reference in a new issue