Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Disable push rule evaluation for rooms excluded from sync #15361

Merged
merged 6 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/15361.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable push rule evaluation for rooms excluded from sync.
1 change: 1 addition & 0 deletions synapse/push/bulk_push_rule_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ async def _action_for_event_by_user(
if (
not event.internal_metadata.is_notifiable()
or event.internal_metadata.is_historical()
or event.room_id in self.hs.config.server.rooms_to_exclude_from_sync
):
# Push rules for events that aren't notifiable can't be processed by this and
# we want to skip push notification actions for historical messages
Expand Down