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

pull/15496/head
Patrick Cloke 2023-04-26 14:27:38 -04:00 committed by GitHub
parent 9900f7c231
commit e2e9b545ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

1
changelog.d/15494.bugfix Normal file
View File

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

View File

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