Show options for .m.rule.tombstone push rules
Part of vector-im/riot-web#8447
This commit is contained in:
parent
62f45807fe
commit
8d8445429c
3 changed files with 14 additions and 0 deletions
|
@ -507,6 +507,7 @@ module.exports = React.createClass({
|
||||||
//'.m.rule.member_event': 'vector',
|
//'.m.rule.member_event': 'vector',
|
||||||
'.m.rule.call': 'vector',
|
'.m.rule.call': 'vector',
|
||||||
'.m.rule.suppress_notices': 'vector',
|
'.m.rule.suppress_notices': 'vector',
|
||||||
|
'.m.rule.tombstone': 'vector',
|
||||||
|
|
||||||
// Others go to others
|
// Others go to others
|
||||||
};
|
};
|
||||||
|
@ -562,6 +563,7 @@ module.exports = React.createClass({
|
||||||
//'im.vector.rule.member_event',
|
//'im.vector.rule.member_event',
|
||||||
'.m.rule.call',
|
'.m.rule.call',
|
||||||
'.m.rule.suppress_notices',
|
'.m.rule.suppress_notices',
|
||||||
|
'.m.rule.tombstone',
|
||||||
];
|
];
|
||||||
for (const i in vectorRuleIds) {
|
for (const i in vectorRuleIds) {
|
||||||
const vectorRuleId = vectorRuleIds[i];
|
const vectorRuleId = vectorRuleIds[i];
|
||||||
|
|
|
@ -325,6 +325,7 @@
|
||||||
"When I'm invited to a room": "When I'm invited to a room",
|
"When I'm invited to a room": "When I'm invited to a room",
|
||||||
"Call invitation": "Call invitation",
|
"Call invitation": "Call invitation",
|
||||||
"Messages sent by bot": "Messages sent by bot",
|
"Messages sent by bot": "Messages sent by bot",
|
||||||
|
"When rooms are upgraded": "When rooms are upgraded",
|
||||||
"Active call (%(roomName)s)": "Active call (%(roomName)s)",
|
"Active call (%(roomName)s)": "Active call (%(roomName)s)",
|
||||||
"unknown caller": "unknown caller",
|
"unknown caller": "unknown caller",
|
||||||
"Incoming voice call from %(name)s": "Incoming voice call from %(name)s",
|
"Incoming voice call from %(name)s": "Incoming voice call from %(name)s",
|
||||||
|
|
|
@ -183,4 +183,15 @@ module.exports = {
|
||||||
off: StandardActions.ACTION_DONT_NOTIFY,
|
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,
|
||||||
|
},
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue