Merge pull request #1318 from zecakeh/pushrules-set-sound

Replace `set_sound` push rule action by `set_tweak`
This commit is contained in:
David Baker 2022-11-08 20:49:46 +00:00 committed by GitHub
commit f53da89996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Replace `set_sound` push rule action by `set_tweak`.

View file

@ -818,7 +818,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
@ -842,7 +842,7 @@ than the room, sender and content rules):
],
"actions" : [
"notify",
{"set_sound":"beeroclock.wav"}
{"set_tweak":"sound", "value":"beeroclock.wav"}
]
}'