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 \
|
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
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue