summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorEric Eastwood <eric.eastwood@beta.gouv.fr>2024-07-30 12:49:55 -0500
committerGitHub <noreply@github.com>2024-07-30 12:49:55 -0500
commitb221f0b84b984d236ea11383cc21f6d07ca3c2ec (patch)
treeaa1ddc9638a46f057f4b138a0483ae81385f1dd9 /synapse/rest
parentMerge branch 'master' into develop (diff)
downloadsynapse-b221f0b84b984d236ea11383cc21f6d07ca3c2ec.tar.xz
Sliding Sync: Add receipts extension (MSC3960) (#17489)
[MSC3960](https://github.com/matrix-org/matrix-spec-proposals/pull/3960): Receipts extension

Based on
[MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575):
Sliding Sync
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/sync.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/rest/client/sync.py b/synapse/rest/client/sync.py

index ccfce6bd53..c607d08de5 100644 --- a/synapse/rest/client/sync.py +++ b/synapse/rest/client/sync.py
@@ -1150,6 +1150,12 @@ class SlidingSyncRestServlet(RestServlet): }, } + if extensions.receipts is not None: + serialized_extensions["receipts"] = { + # Same as the the top-level `account_data.events` field in Sync v2. + "rooms": extensions.receipts.room_id_to_receipt_map, + } + return serialized_extensions