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

Commit 016f085

Browse files
committed
Merge tag 'v1.38.1'
Synapse 1.38.1 (2021-07-22) =========================== Bugfixes -------- - 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](#10457))
2 parents 3fffb71 + 283bb5c commit 016f085

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
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.38.0 (2021-07-13)
211
===========================
312

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.38.1) stable; urgency=medium
2+
3+
* New synapse release 1.38.1.
4+
5+
-- Synapse Packaging team <[email protected]> Thu, 22 Jul 2021 15:37:06 +0100
6+
17
matrix-synapse-py3 (1.38.0) stable; urgency=medium
28

39
* New synapse release 1.38.0.

synapse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
except ImportError:
4848
pass
4949

50-
__version__ = "1.38.0"
50+
__version__ = "1.38.1"
5151

5252
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
5353
# We import here so that we don't have to install a bunch of deps when

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)