Skip to content

Commit

Permalink
Update _on_new_receipts() to work with MSC2285 changes
Browse files Browse the repository at this point in the history
This was missed in matrix-org#12168

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
  • Loading branch information
SimonBrandner committed May 5, 2022
1 parent 2d74a8c commit e05b742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/replication/tcp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from twisted.internet.protocol import ReconnectingClientFactory
from twisted.python.failure import Failure

from synapse.api.constants import EventTypes
from synapse.api.constants import EventTypes, ReceiptTypes
from synapse.federation import send_queue
from synapse.federation.sender import FederationSender
from synapse.logging.context import PreserveLoggingContext, make_deferred_yieldable
Expand Down Expand Up @@ -402,7 +402,7 @@ async def _on_new_receipts(
if not self._is_mine_id(receipt.user_id):
continue
if (
receipt.data.get("hidden", False)
receipt.receipt_type == ReceiptTypes.READ_PRIVATE
and self._hs.config.experimental.msc2285_enabled
):
continue
Expand Down

0 comments on commit e05b742

Please sign in to comment.