Replace set_sound push rule action by set_tweak
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
830f80f56a
commit
392794950b
1 changed files with 2 additions and 2 deletions
|
@ -821,7 +821,7 @@ specific sound (with a rule\_id of `SSByZWFsbHkgbGlrZSBjYWtl`):
|
|||
curl -X PUT -H "Content-Type: application/json" "https://example.com/_matrix/client/v3/pushrules/global/content/SSByZWFsbHkgbGlrZSBjYWtl?access_token=123456" -d \
|
||||
'{
|
||||
"pattern": "cake",
|
||||
"actions" : ["notify", {"set_sound":"cakealarm.wav"}]
|
||||
"actions" : ["notify", {"set_tweak":"sound", "value":"cakealarm.wav"}]
|
||||
}'
|
||||
|
||||
To add a rule suppressing notifications for messages starting with
|
||||
|
@ -845,7 +845,7 @@ than the room, sender and content rules):
|
|||
],
|
||||
"actions" : [
|
||||
"notify",
|
||||
{"set_sound":"beeroclock.wav"}
|
||||
{"set_tweak":"sound", "value":"beeroclock.wav"}
|
||||
]
|
||||
}'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue