diff --git a/content/client-server-api/modules/push.md b/content/client-server-api/modules/push.md index 87f43fa6..9a2a671f 100644 --- a/content/client-server-api/modules/push.md +++ b/content/client-server-api/modules/push.md @@ -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 diff --git a/data/api/client-server/pushrules.yaml b/data/api/client-server/pushrules.yaml index 3a67aea8..817138d1 100644 --- a/data/api/client-server/pushrules.yaml +++ b/data/api/client-server/pushrules.yaml @@ -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, diff --git a/data/event-schemas/examples/m.push_rules.yaml b/data/event-schemas/examples/m.push_rules.yaml index 34bc2fe6..639c6ec7 100644 --- a/data/event-schemas/examples/m.push_rules.yaml +++ b/data/event-schemas/examples/m.push_rules.yaml @@ -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",