From 9f16e5c6ba1026cc5da6b60c5d39b615f8526256 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 5 Jul 2021 14:32:44 +0200 Subject: [PATCH] Change delete room API to `DELETE` (#151) --- src/synapse/dataProvider.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index bbe06cc..3bfa4e7 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -67,9 +67,8 @@ const resourceMap = { return json.total_rooms; }, delete: params => ({ - endpoint: `/_synapse/admin/v1/rooms/${params.id}/delete`, + endpoint: `/_synapse/admin/v1/rooms/${params.id}`, body: { block: false }, - method: "POST", }), }, reports: {