mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Comment override rule stuff
This commit is contained in:
parent
fc2c62e896
commit
d08f716681
1 changed files with 5 additions and 1 deletions
|
@ -69,7 +69,11 @@ function setRoomNotifsStateMuted(roomId) {
|
||||||
promises.push(cli.deletePushRule('global', 'room', roomRule.rule_id));
|
promises.push(cli.deletePushRule('global', 'room', roomRule.rule_id));
|
||||||
}
|
}
|
||||||
|
|
||||||
// add an override rule to squelch everything in this room
|
// add/replace an override rule to squelch everything in this room
|
||||||
|
// NB. We use the room ID as the name of this rule too, although this
|
||||||
|
// is an override rule, not a room rule: it still pertains to this room
|
||||||
|
// though, so using the room ID as the rule ID is logical and prevents
|
||||||
|
// duplicate copies of the rule.
|
||||||
promises.push(cli.addPushRule('global', 'override', roomId, {
|
promises.push(cli.addPushRule('global', 'override', roomId, {
|
||||||
conditions: [
|
conditions: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue