summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authormcalinghee <mcalinghee.dev@gmail.com>2023-04-27 12:32:02 +0200
committerGitHub <noreply@github.com>2023-04-27 11:32:02 +0100
commit486c059479c3f1fefa8470d41f34a9571d447c00 (patch)
tree7cf041f242c4aad832ca17abd5741f7bda7acba9 /synapse
parentDocs: Add Nginx loadbalancing example with sticky mxid for workers (#15411) (diff)
downloadsynapse-486c059479c3f1fefa8470d41f34a9571d447c00.tar.xz
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
Diffstat (limited to 'synapse')
-rw-r--r--synapse/push/bulk_push_rule_evaluator.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py
index 199337673f..320084f5f5 100644
--- a/synapse/push/bulk_push_rule_evaluator.py
+++ b/synapse/push/bulk_push_rule_evaluator.py
@@ -326,6 +326,7 @@ class BulkPushRuleEvaluator:
         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