diff --git a/changelogs/client_server/newsfragments/1318.clarification b/changelogs/client_server/newsfragments/1318.clarification new file mode 100644 index 00000000..0fa17ca1 --- /dev/null +++ b/changelogs/client_server/newsfragments/1318.clarification @@ -0,0 +1 @@ +Replace `set_sound` push rule action by `set_tweak`. \ No newline at end of file diff --git a/content/client-server-api/modules/push.md b/content/client-server-api/modules/push.md index 61156981..554b5752 100644 --- a/content/client-server-api/modules/push.md +++ b/content/client-server-api/modules/push.md @@ -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"} ] }'