Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

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

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Do not return experimental push rules by default.
  • Loading branch information
clokep committed Apr 26, 2023
commit 448c8574c73eae1efb009a6dfa9d7404f225310e
5 changes: 4 additions & 1 deletion rust/src/push/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
{
Comment on lines +571 to +574
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't be naturally obvious to me that msc1767_enabled controls enables both of these. (I can see that the second explicitly builds on the former though.)

I guess we can rip out these experimental guards some day, and this isn't going to live around forever?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wouldn't be naturally obvious to me that msc1767_enabled controls enables both of these. (I can see that the second explicitly builds on the former though.)

I guess we can rip out these experimental guards some day, and this isn't going to live around forever?

Me neither, the comment for the experimental config flag says "MSC1767 and friends"... There's like 4 or 5 other MSCs all related and it is confusing IMO.

So yes, hopefully we burn this with fire at some point?

return false;
}

Expand Down