From 57a986fe40f997fc2cecee43e0fe68ada184e2c2 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Wed, 9 Mar 2022 22:18:08 +0100 Subject: [PATCH] matrix.sh - adapt room delete to new ROOM API version --- seqs/matrix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seqs/matrix.sh b/seqs/matrix.sh index e222e2c..0fd9c65 100755 --- a/seqs/matrix.sh +++ b/seqs/matrix.sh @@ -405,9 +405,9 @@ step_28() { echo " [I] Deleting room with ID: $roomId" - local apiCall="http://${synapseIP}:8008/_synapse/admin/v1/rooms/$roomId/delete" + local apiCall="http://${synapseIP}:8008/_synapse/admin/v2/rooms/$roomId" exep "curl -sS --header \"Authorization: Bearer $MATRIX_ACCESS\" \ - -X POST \ + -X DELETE \ -H \"Content-Type: application/json\" -d \"{}\" \ \"$apiCall\" | python -m json.tool"