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 \
'{
"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

View file

@ -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,

View file

@ -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",