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

Commit 486c059

Browse files
authored
Disable push rule evaluation for rooms excluded from sync (#15361)
* no push for excluded room from sync * add changelog Signed-off-by: Maghen Calinghee <maghen.calinghee@beta.gouv.fr> * correct changelog
1 parent 3e95c19 commit 486c059

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

changelog.d/15361.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable push rule evaluation for rooms excluded from sync.

synapse/push/bulk_push_rule_evaluator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ async def _action_for_event_by_user(
326326
if (
327327
not event.internal_metadata.is_notifiable()
328328
or event.internal_metadata.is_historical()
329+
or event.room_id in self.hs.config.server.rooms_to_exclude_from_sync
329330
):
330331
# Push rules for events that aren't notifiable can't be processed by this and
331332
# we want to skip push notification actions for historical messages

0 commit comments

Comments
 (0)