We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_on_new_receipts()
1 parent 2d74a8c commit e05b742Copy full SHA for e05b742
synapse/replication/tcp/client.py
@@ -21,7 +21,7 @@
21
from twisted.internet.protocol import ReconnectingClientFactory
22
from twisted.python.failure import Failure
23
24
-from synapse.api.constants import EventTypes
+from synapse.api.constants import EventTypes, ReceiptTypes
25
from synapse.federation import send_queue
26
from synapse.federation.sender import FederationSender
27
from synapse.logging.context import PreserveLoggingContext, make_deferred_yieldable
@@ -402,7 +402,7 @@ async def _on_new_receipts(
402
if not self._is_mine_id(receipt.user_id):
403
continue
404
if (
405
- receipt.data.get("hidden", False)
+ receipt.receipt_type == ReceiptTypes.READ_PRIVATE
406
and self._hs.config.experimental.msc2285_enabled
407
):
408
0 commit comments