From c672cad1a1a9f39a41b5f5eee16aa029e8e0a022 Mon Sep 17 00:00:00 2001 From: Kerry Date: Wed, 27 Sep 2023 10:33:41 +1300 Subject: [PATCH] remove IsUserMention and IsRoomMention from DEFAULT_OVERRIDE_RULES (#3752) --- src/pushprocessor.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/pushprocessor.ts b/src/pushprocessor.ts index 7e63162b4..02e2c37f7 100644 --- a/src/pushprocessor.ts +++ b/src/pushprocessor.ts @@ -71,36 +71,6 @@ const DEFAULT_OVERRIDE_RULES: IPushRule[] = [ ], actions: [PushRuleActionName.DontNotify], }, - { - rule_id: RuleId.IsUserMention, - default: true, - enabled: true, - conditions: [ - { - kind: ConditionKind.EventPropertyContains, - key: "content.m\\.mentions.user_ids", - value: "", // The user ID is dynamically added in rewriteDefaultRules. - }, - ], - actions: [PushRuleActionName.Notify, { set_tweak: TweakName.Highlight }], - }, - { - rule_id: RuleId.IsRoomMention, - default: true, - enabled: true, - conditions: [ - { - kind: ConditionKind.EventPropertyIs, - key: "content.m\\.mentions.room", - value: true, - }, - { - kind: ConditionKind.SenderNotificationPermission, - key: "room", - }, - ], - actions: [PushRuleActionName.Notify, { set_tweak: TweakName.Highlight }], - }, { // For homeservers which don't support MSC3786 yet rule_id: ".org.matrix.msc3786.rule.room.server_acl",