From 392794950b43cc759f6e4f0e2994a57e90d51d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 3 Nov 2022 09:11:49 +0100 Subject: [PATCH] Replace set_sound push rule action by set_tweak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- content/client-server-api/modules/push.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/client-server-api/modules/push.md b/content/client-server-api/modules/push.md index 9f9b30ac..4d0efa41 100644 --- a/content/client-server-api/modules/push.md +++ b/content/client-server-api/modules/push.md @@ -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"} ] }'