mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Remove obsolete dont_notify from examples.
This commit is contained in:
parent
db65a83b44
commit
e01f185d0f
|
|
@ -871,14 +871,14 @@ To create a rule that suppresses notifications for the room with ID
|
|||
|
||||
curl -X PUT -H "Content-Type: application/json" "https://example.com/_matrix/client/v3/pushrules/global/room/%21dj234r78wl45Gh4D%3Amatrix.org?access_token=123456" -d \
|
||||
'{
|
||||
"actions" : ["dont_notify"]
|
||||
"actions" : []
|
||||
}'
|
||||
|
||||
To suppress notifications for the user `@spambot:matrix.org`:
|
||||
|
||||
curl -X PUT -H "Content-Type: application/json" "https://example.com/_matrix/client/v3/pushrules/global/sender/%40spambot%3Amatrix.org?access_token=123456" -d \
|
||||
'{
|
||||
"actions" : ["dont_notify"]
|
||||
"actions" : []
|
||||
}'
|
||||
|
||||
To always notify for messages that contain the work 'cake' and set a
|
||||
|
|
|
|||
|
|
@ -75,18 +75,14 @@ paths:
|
|||
],
|
||||
"override": [
|
||||
{
|
||||
"actions": [
|
||||
"dont_notify"
|
||||
],
|
||||
"actions": [],
|
||||
"conditions": [],
|
||||
"default": true,
|
||||
"enabled": false,
|
||||
"rule_id": ".m.rule.master"
|
||||
},
|
||||
{
|
||||
"actions": [
|
||||
"dont_notify"
|
||||
],
|
||||
"actions": [],
|
||||
"conditions": [
|
||||
{
|
||||
"key": "content.msgtype",
|
||||
|
|
@ -286,9 +282,7 @@ paths:
|
|||
rule itself such as the rule's `actions` and `conditions` if set.
|
||||
examples:
|
||||
application/json: {
|
||||
"actions": [
|
||||
"dont_notify"
|
||||
],
|
||||
"actions": [],
|
||||
"pattern": "cake*lie",
|
||||
"rule_id": "nocake",
|
||||
"enabled": true,
|
||||
|
|
|
|||
|
|
@ -23,18 +23,14 @@
|
|||
],
|
||||
"override": [
|
||||
{
|
||||
"actions": [
|
||||
"dont_notify"
|
||||
],
|
||||
"actions": [],
|
||||
"conditions": [],
|
||||
"default": true,
|
||||
"enabled": false,
|
||||
"rule_id": ".m.rule.master"
|
||||
},
|
||||
{
|
||||
"actions": [
|
||||
"dont_notify"
|
||||
],
|
||||
"actions": [],
|
||||
"conditions": [
|
||||
{
|
||||
"key": "content.msgtype",
|
||||
|
|
|
|||
Loading…
Reference in a new issue