mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 00:54:48 -04:00
Support for MSC2285 (hidden read receipts) (#10413)
Implementation of matrix-org/matrix-doc#2285
This commit is contained in:
parent
0489683012
commit
c3b037795a
11 changed files with 495 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue