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 1/3] 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"} ] }' From 306d1aac5d0b6a3d7adf3c1092aeb62eeb51d5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 3 Nov 2022 09:17:23 +0100 Subject: [PATCH 2/3] Add newsfragment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- changelogs/client_server/newsfragments/1318.clarification | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelogs/client_server/newsfragments/1318.clarification diff --git a/changelogs/client_server/newsfragments/1318.clarification b/changelogs/client_server/newsfragments/1318.clarification new file mode 100644 index 00000000..3ccb2333 --- /dev/null +++ b/changelogs/client_server/newsfragments/1318.clarification @@ -0,0 +1 @@ +Fix various typos throughout the specification. From fc624328dfe6c5f74d1099319527113c285c8f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Tue, 8 Nov 2022 17:53:58 +0100 Subject: [PATCH 3/3] Change newsfragment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- changelogs/client_server/newsfragments/1318.clarification | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelogs/client_server/newsfragments/1318.clarification b/changelogs/client_server/newsfragments/1318.clarification index 3ccb2333..0fa17ca1 100644 --- a/changelogs/client_server/newsfragments/1318.clarification +++ b/changelogs/client_server/newsfragments/1318.clarification @@ -1 +1 @@ -Fix various typos throughout the specification. +Replace `set_sound` push rule action by `set_tweak`. \ No newline at end of file