Do not return extensible events experimental push rules by default. (#15494)

1.103.0-whithout-watcha
Patrick Cloke 2 years ago committed by GitHub
parent 9900f7c231
commit e2e9b545ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      changelog.d/15494.bugfix
  2. 5
      rust/src/push/mod.rs

@ -0,0 +1 @@
Fix a bug introduced in Synapse 1.73.0 where some experimental push rules were returned by default.

@ -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;
}

Loading…
Cancel
Save