From 2525b5a5d8676cb23d39d6b7414b7dfada6a0bc3 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 4 Jul 2019 14:34:27 +0100 Subject: [PATCH] Add default push rule to ignore reactions This adds a default push rule to ignore reactions as proposed in [MSC2153](https://github.com/matrix-org/matrix-doc/pull/2153). By adding it here in the client directly, we can try out the idea early even if it hasn't appeared in the user's HS yet. Part of https://github.com/vector-im/riot-web/issues/10208 --- src/pushprocessor.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/pushprocessor.js b/src/pushprocessor.js index 544fdabd146..54202b412a5 100644 --- a/src/pushprocessor.js +++ b/src/pushprocessor.js @@ -52,6 +52,22 @@ const DEFAULT_OVERRIDE_RULES = [ }, ], }, + { + // For homeservers which don't support MSC2153 yet + rule_id: ".m.rule.reaction", + default: true, + enabled: true, + conditions: [ + { + kind: "event_match", + key: "type", + pattern: "m.reaction", + }, + ], + actions: [ + "dont_notify", + ], + }, ]; /**