From 333443a49c669350fa9fc87dd316556c89451391 Mon Sep 17 00:00:00 2001 From: mcalinghee Date: Fri, 31 Mar 2023 17:40:22 +0200 Subject: [PATCH 1/3] no push for excluded room from sync --- synapse/push/bulk_push_rule_evaluator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synapse/push/bulk_push_rule_evaluator.py b/synapse/push/bulk_push_rule_evaluator.py index 199337673fa2..320084f5f58c 100644 --- a/synapse/push/bulk_push_rule_evaluator.py +++ b/synapse/push/bulk_push_rule_evaluator.py @@ -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 From 812a7f62bc4e4e8e0f3801513553ab8f50bcb90c Mon Sep 17 00:00:00 2001 From: mcalinghee Date: Wed, 26 Apr 2023 18:38:33 +0200 Subject: [PATCH 2/3] add changelog Signed-off-by: Maghen Calinghee --- changelog.d/15361.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/15361.bugfix diff --git a/changelog.d/15361.bugfix b/changelog.d/15361.bugfix new file mode 100644 index 000000000000..8fe2d47cb502 --- /dev/null +++ b/changelog.d/15361.bugfix @@ -0,0 +1 @@ +Disable push rule evaluation for rooms excluded from sync \ No newline at end of file From 7d71886f82edc98899e3e7ddcb390d51ca1923c7 Mon Sep 17 00:00:00 2001 From: mcalinghee Date: Wed, 26 Apr 2023 19:24:49 +0200 Subject: [PATCH 3/3] correct changelog --- changelog.d/15361.bugfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/15361.bugfix b/changelog.d/15361.bugfix index 8fe2d47cb502..2cd795e5766a 100644 --- a/changelog.d/15361.bugfix +++ b/changelog.d/15361.bugfix @@ -1 +1 @@ -Disable push rule evaluation for rooms excluded from sync \ No newline at end of file +Disable push rule evaluation for rooms excluded from sync. \ No newline at end of file