From a2aae7ea4609455673d4b92cd9d5615f53e79f99 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 7 Sep 2021 10:48:13 -0600 Subject: [PATCH] Disable push processing --- synapse/handlers/federation_event.py | 2 +- synapse/handlers/message.py | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index 66aca2f8642b..c81a0ba1a0fe 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -2171,7 +2171,7 @@ async def _run_push_actions_and_persist_event( # persist_events_and_notify directly.) assert not event.internal_metadata.outlier - if not backfilled and not context.rejected: + if False and not backfilled and not context.rejected: min_depth = await self._store.get_min_depth(event.room_id) if min_depth is None or min_depth > event.depth: # XXX richvdh 2021/10/07: I don't really understand what this diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 845f6833583d..f717fce20cb6 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -1465,9 +1465,10 @@ async def _persist_events( a room that has been un-partial stated. """ - await self._bulk_push_rule_evaluator.action_for_events_by_user( - events_and_context - ) + # T2B: Disable push processing. + #await self._bulk_push_rule_evaluator.action_for_events_by_user( + # events_and_context + #) try: # If we're a worker we need to hit out to the master.