Skip to content

Commit

Permalink
Merge pull request #1318 from zecakeh/pushrules-set-sound
Browse files Browse the repository at this point in the history
Replace `set_sound` push rule action by `set_tweak`
  • Loading branch information
dbkr committed Nov 8, 2022
2 parents 6879f96 + fc62432 commit f53da89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1318.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace `set_sound` push rule action by `set_tweak`.
4 changes: 2 additions & 2 deletions content/client-server-api/modules/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -842,7 +842,7 @@ than the room, sender and content rules):
],
"actions" : [
"notify",
{"set_sound":"beeroclock.wav"}
{"set_tweak":"sound", "value":"beeroclock.wav"}
]
}'

Expand Down

0 comments on commit f53da89

Please sign in to comment.