File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -2101,7 +2101,7 @@ async def _run_push_actions_and_persist_event(
2101
2101
# persist_events_and_notify directly.)
2102
2102
assert not event .internal_metadata .outlier
2103
2103
2104
- if not backfilled and not context .rejected :
2104
+ if False and not backfilled and not context .rejected :
2105
2105
min_depth = await self ._store .get_min_depth (event .room_id )
2106
2106
if min_depth is None or min_depth > event .depth :
2107
2107
# XXX richvdh 2021/10/07: I don't really understand what this
Original file line number Diff line number Diff line change @@ -1425,17 +1425,18 @@ async def _persist_events(
1425
1425
a room that has been un-partial stated.
1426
1426
"""
1427
1427
1428
- for event , context in events_and_context :
1429
- # Skip push notification actions for historical messages
1430
- # because we don't want to notify people about old history back in time.
1431
- # The historical messages also do not have the proper `context.current_state_ids`
1432
- # and `state_groups` because they have `prev_events` that aren't persisted yet
1433
- # (historical messages persisted in reverse-chronological order).
1434
- if not event .internal_metadata .is_historical ():
1435
- with opentracing .start_active_span ("calculate_push_actions" ):
1436
- await self ._bulk_push_rule_evaluator .action_for_event_by_user (
1437
- event , context
1438
- )
1428
+ # T2B: Disable push processing.
1429
+ #for event, context in events_and_context:
1430
+ # # Skip push notification actions for historical messages
1431
+ # # because we don't want to notify people about old history back in time.
1432
+ # # The historical messages also do not have the proper `context.current_state_ids`
1433
+ # # and `state_groups` because they have `prev_events` that aren't persisted yet
1434
+ # # (historical messages persisted in reverse-chronological order).
1435
+ # if not event.internal_metadata.is_historical():
1436
+ # with opentracing.start_active_span("calculate_push_actions"):
1437
+ # await self._bulk_push_rule_evaluator.action_for_event_by_user(
1438
+ # event, context
1439
+ # )
1439
1440
1440
1441
try :
1441
1442
# If we're a worker we need to hit out to the master.
You can’t perform that action at this time.
0 commit comments