Show options for .m.rule.tombstone push rules

Part of vector-im/riot-web#8447
This commit is contained in:
Travis Ralston 2019-03-15 14:13:15 -06:00
parent 62f45807fe
commit 8d8445429c
3 changed files with 14 additions and 0 deletions

View file

@ -183,4 +183,15 @@ module.exports = {
off: StandardActions.ACTION_DONT_NOTIFY,
},
}),
// Room upgrades (tombstones)
".m.rule.tombstone": new VectorPushRuleDefinition({
kind: "override",
description: _td("When rooms are upgraded"), // passed through _t() translation in src/components/views/settings/Notifications.js
vectorStateToActions: { // The actions for each vector state, or null to disable the rule.
on: StandardActions.ACTION_NOTIFY,
loud: StandardActions.ACTION_HIGHLIGHT,
off: StandardActions.ACTION_DISABLED,
},
}),
};