Move .m.rule.roomnotif
before .m.rule.tombstone
(#1421)
See https://github.com/matrix-org/matrix-spec/issues/1406 for the reasoning on this. TL;DR: the spec has always been wrong here.
This commit is contained in:
parent
ad94985754
commit
6b02e39308
2 changed files with 33 additions and 32 deletions
|
@ -0,0 +1 @@
|
||||||
|
Correct the order of the default override pushrules in the spec.
|
|
@ -524,6 +524,38 @@ Definition:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**`.m.rule.roomnotif`**
|
||||||
|
|
||||||
|
Matches any message whose content is unencrypted and contains the text
|
||||||
|
`@room`, signifying the whole room should be notified of the event.
|
||||||
|
|
||||||
|
Definition:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"rule_id": ".m.rule.roomnotif",
|
||||||
|
"default": true,
|
||||||
|
"enabled": true,
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"kind": "event_match",
|
||||||
|
"key": "content.body",
|
||||||
|
"pattern": "@room"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "sender_notification_permission",
|
||||||
|
"key": "room"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"actions": [
|
||||||
|
"notify",
|
||||||
|
{
|
||||||
|
"set_tweak": "highlight"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
**<a name="mruletombstone"></a>`.m.rule.tombstone`**
|
**<a name="mruletombstone"></a>`.m.rule.tombstone`**
|
||||||
|
|
||||||
Matches any state event whose type is `m.room.tombstone`. This is
|
Matches any state event whose type is `m.room.tombstone`. This is
|
||||||
|
@ -587,38 +619,6 @@ Definition:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**`.m.rule.roomnotif`**
|
|
||||||
|
|
||||||
Matches any message whose content is unencrypted and contains the text
|
|
||||||
`@room`, signifying the whole room should be notified of the event.
|
|
||||||
|
|
||||||
Definition:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"rule_id": ".m.rule.roomnotif",
|
|
||||||
"default": true,
|
|
||||||
"enabled": true,
|
|
||||||
"conditions": [
|
|
||||||
{
|
|
||||||
"kind": "event_match",
|
|
||||||
"key": "content.body",
|
|
||||||
"pattern": "@room"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "sender_notification_permission",
|
|
||||||
"key": "room"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"actions": [
|
|
||||||
"notify",
|
|
||||||
{
|
|
||||||
"set_tweak": "highlight"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
###### Default Content Rules
|
###### Default Content Rules
|
||||||
|
|
||||||
**`.m.rule.contains_user_name`**
|
**`.m.rule.contains_user_name`**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue