push: Enable by default .m.rule.tombstone push rule

As defined in the spec.
This commit is contained in:
Kévin Commaille 2023-03-14 11:54:16 +01:00 committed by Kévin Commaille
parent 27a2c07df9
commit 8eea3e0549
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# [unreleased] # [unreleased]
Bug fixes:
- Set the predefined server-default `.m.rule.tombstone` push rule as enabled by default, as defined
in the spec.
Breaking changes: Breaking changes:
- Make `in_reply_to` field of `Thread` optional - Make `in_reply_to` field of `Thread` optional

View File

@ -202,7 +202,7 @@ impl ConditionalPushRule {
Self { Self {
actions: vec![Notify, SetTweak(Tweak::Highlight(true))], actions: vec![Notify, SetTweak(Tweak::Highlight(true))],
default: true, default: true,
enabled: false, enabled: true,
rule_id: PredefinedOverrideRuleId::Tombstone.to_string(), rule_id: PredefinedOverrideRuleId::Tombstone.to_string(),
conditions: vec![ conditions: vec![
EventMatch { key: "type".into(), pattern: "m.room.tombstone".into() }, EventMatch { key: "type".into(), pattern: "m.room.tombstone".into() },