From 3d4f45d07078a04f37371b24ea73b6209dbfddc7 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 26 Oct 2020 10:09:09 +0100 Subject: [PATCH] Bugfix delete room (#72) Fixes #70 Bugfix delete a room in room list with `deleteMany`. --- src/synapse/dataProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index c9233db..e1f06bc 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -66,8 +66,8 @@ const resourceMap = { total: json => { return json.total_rooms; }, - delete: id => ({ - endpoint: `/_synapse/admin/v1/rooms/${id}/delete`, + delete: params => ({ + endpoint: `/_synapse/admin/v1/rooms/${params.id}/delete`, body: { block: false }, method: "POST", }),