Remove obsolete dont_notify from examples.

This commit is contained in:
Patrick Cloke 2023-05-03 07:37:17 -04:00
parent db65a83b44
commit e01f185d0f
3 changed files with 7 additions and 17 deletions

View file

@ -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 \ 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`: 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 \ 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 To always notify for messages that contain the work 'cake' and set a

View file

@ -75,18 +75,14 @@ paths:
], ],
"override": [ "override": [
{ {
"actions": [ "actions": [],
"dont_notify"
],
"conditions": [], "conditions": [],
"default": true, "default": true,
"enabled": false, "enabled": false,
"rule_id": ".m.rule.master" "rule_id": ".m.rule.master"
}, },
{ {
"actions": [ "actions": [],
"dont_notify"
],
"conditions": [ "conditions": [
{ {
"key": "content.msgtype", "key": "content.msgtype",
@ -286,9 +282,7 @@ paths:
rule itself such as the rule's `actions` and `conditions` if set. rule itself such as the rule's `actions` and `conditions` if set.
examples: examples:
application/json: { application/json: {
"actions": [ "actions": [],
"dont_notify"
],
"pattern": "cake*lie", "pattern": "cake*lie",
"rule_id": "nocake", "rule_id": "nocake",
"enabled": true, "enabled": true,

View file

@ -23,18 +23,14 @@
], ],
"override": [ "override": [
{ {
"actions": [ "actions": [],
"dont_notify"
],
"conditions": [], "conditions": [],
"default": true, "default": true,
"enabled": false, "enabled": false,
"rule_id": ".m.rule.master" "rule_id": ".m.rule.master"
}, },
{ {
"actions": [ "actions": [],
"dont_notify"
],
"conditions": [ "conditions": [
{ {
"key": "content.msgtype", "key": "content.msgtype",