diff options
author | Šimon Brandner <simon.bra.ag@gmail.com> | 2022-08-05 17:09:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 11:09:33 -0400 |
commit | ab18441573dc14cea1fe4082b2a89b9d392a4b9f (patch) | |
tree | 6d2b45d497dc30c7ff36e096f4916b2183e530ed /synapse/replication | |
parent | Use literals in place of `HTTPStatus` constants in tests (#13463) (diff) | |
download | synapse-ab18441573dc14cea1fe4082b2a89b9d392a4b9f.tar.xz |
Support stable identifiers for MSC2285: private read receipts. (#13273)
This adds support for the stable identifiers of MSC2285 while continuing to support the unstable identifiers behind the configuration flag. These will be removed in a future version.
Diffstat (limited to 'synapse/replication')
-rw-r--r-- | synapse/replication/tcp/client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index e4f2201c92..1ed7230e32 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -416,7 +416,10 @@ class FederationSenderHandler: if not self._is_mine_id(receipt.user_id): continue # Private read receipts never get sent over federation. - if receipt.receipt_type == ReceiptTypes.READ_PRIVATE: + if receipt.receipt_type in ( + ReceiptTypes.READ_PRIVATE, + ReceiptTypes.UNSTABLE_READ_PRIVATE, + ): continue receipt_info = ReadReceipt( receipt.room_id, |