diff options
author | Šimon Brandner <simon.bra.ag@gmail.com> | 2021-07-28 10:05:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-28 10:05:11 +0200 |
commit | c3b037795a927ecf58fd3ab099c2a751f05de4d5 (patch) | |
tree | 4a738dc5124b065096bd2c64bdd6142c9543e928 /synapse/replication/tcp/client.py | |
parent | Document Complement dev usage (#10483) (diff) | |
download | synapse-c3b037795a927ecf58fd3ab099c2a751f05de4d5.tar.xz |
Support for MSC2285 (hidden read receipts) (#10413)
Implementation of matrix-org/matrix-doc#2285
Diffstat (limited to 'synapse/replication/tcp/client.py')
-rw-r--r-- | synapse/replication/tcp/client.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index 9d4859798b..e09b857814 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -393,6 +393,11 @@ class FederationSenderHandler: # we only want to send on receipts for our own users if not self._is_mine_id(receipt.user_id): continue + if ( + receipt.data.get("hidden", False) + and self._hs.config.experimental.msc2285_enabled + ): + continue receipt_info = ReadReceipt( receipt.room_id, receipt.receipt_type, |