From b3d2d39b60e8e1b3820fc06cc0a20d6fb4470705 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 15 Mar 2019 14:07:15 -0600 Subject: [PATCH] Add tombstone rule as a default rule in support of MSC1930 Part of https://github.com/vector-im/riot-web/issues/8447 See also https://github.com/matrix-org/matrix-doc/pull/1930 --- src/pushprocessor.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/pushprocessor.js b/src/pushprocessor.js index b5a50121d..675db1895 100644 --- a/src/pushprocessor.js +++ b/src/pushprocessor.js @@ -27,6 +27,26 @@ const RULEKINDS_IN_ORDER = ['override', 'content', 'room', 'sender', 'underride' // defaults apply under no other circumstances to avoid confusing the client with server // state. const DEFAULT_OVERRIDE_RULES = [ + { + // For homeservers which don't support MSC1930 yet + rule_id: ".m.rule.tombstone", + default: true, + enabled: true, + conditions: [ + { + kind: "event_match", + key: "type", + pattern: "m.room.tombstone", + }, + ], + actions: [ + "notify", + { + set_tweak: "highlight", + value: true, + }, + ], + }, ]; /**