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

Commit

Permalink
Disable push rule evaluation for rooms excluded from sync (#15361)
Browse files Browse the repository at this point in the history
* no push for excluded room from sync

* add changelog
Signed-off-by: Maghen Calinghee <[email protected]>

* correct changelog
  • Loading branch information
mcalinghee authored Apr 27, 2023
1 parent 3e95c19 commit 486c059
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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

0 comments on commit 486c059

Please sign in to comment.