diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-04-26 14:27:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 14:27:38 -0400 |
commit | e2e9b545ff884627f7605c3d6519e46de33b83fe (patch) | |
tree | 0d44a62c46b780a39fc96889f1cd2f9bfa15d45d | |
parent | Add admin endpoint to query room sizes (#15482) (diff) | |
download | synapse-e2e9b545ff884627f7605c3d6519e46de33b83fe.tar.xz |
Do not return extensible events experimental push rules by default. (#15494)
-rw-r--r-- | changelog.d/15494.bugfix | 1 | ||||
-rw-r--r-- | rust/src/push/mod.rs | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/changelog.d/15494.bugfix b/changelog.d/15494.bugfix new file mode 100644 index 0000000000..89f9262200 --- /dev/null +++ b/changelog.d/15494.bugfix @@ -0,0 +1 @@ +Fix a bug introduced in Synapse 1.73.0 where some experimental push rules were returned by default. diff --git a/rust/src/push/mod.rs b/rust/src/push/mod.rs index 575a1c1e68..42c7c84132 100644 --- a/rust/src/push/mod.rs +++ b/rust/src/push/mod.rs @@ -568,7 +568,10 @@ impl FilteredPushRules { .filter(|rule| { // Ignore disabled experimental push rules - if !self.msc1767_enabled && rule.rule_id.contains("org.matrix.msc1767") { + if !self.msc1767_enabled + && (rule.rule_id.contains("org.matrix.msc1767") + || rule.rule_id.contains("org.matrix.msc3933")) + { return false; } |