Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 683deee

Browse files
committed
Merge branch 'master' into develop
2 parents cd5fcd2 + 016f085 commit 683deee

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Synapse 1.38.1 (2021-07-22)
2+
===========================
3+
4+
Bugfixes
5+
--------
6+
7+
- Always include `device_one_time_keys_count` key in `/sync` response to work around a bug in Element Android that broke encryption for new devices. ([\#10457](https://github.com/matrix-org/synapse/issues/10457))
8+
9+
110
Synapse 1.39.0rc1 (2021-07-20)
211
==============================
312

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ matrix-synapse-py3 (1.39.0ubuntu1) UNRELEASED; urgency=medium
44

55
-- Richard van der Hoff <[email protected]> Tue, 20 Jul 2021 00:10:03 +0100
66

7+
matrix-synapse-py3 (1.38.1) stable; urgency=medium
8+
9+
* New synapse release 1.38.1.
10+
11+
-- Synapse Packaging team <[email protected]> Thu, 22 Jul 2021 15:37:06 +0100
12+
713
matrix-synapse-py3 (1.39.0~rc1) stable; urgency=medium
814

915
* New synapse release 1.39.0rc1.

synapse/rest/client/v2_alpha/sync.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,13 @@ async def encode_response(self, time_now, sync_result, access_token_id, filter):
252252
if sync_result.device_lists.left:
253253
response["device_lists"]["left"] = list(sync_result.device_lists.left)
254254

255-
if sync_result.device_one_time_keys_count:
256-
response[
257-
"device_one_time_keys_count"
258-
] = sync_result.device_one_time_keys_count
255+
# We always include this because https://github.com/vector-im/element-android/issues/3725
256+
# The spec isn't terribly clear on when this can be omitted and how a client would tell
257+
# the difference between "no keys present" and "nothing changed" in terms of whole field
258+
# absent / individual key type entry absent
259+
# Corresponding synapse issue: https://github.com/matrix-org/synapse/issues/10456
260+
response["device_one_time_keys_count"] = sync_result.device_one_time_keys_count
261+
259262
if sync_result.device_unused_fallback_key_types:
260263
response[
261264
"org.matrix.msc2732.device_unused_fallback_key_types"

0 commit comments

Comments
 (0)