diff --git a/README.md b/README.md index 4322072..5fdecbd 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). ### Supported Synapse -It needs at least [Synapse](https://github.com/matrix-org/synapse) v1.46.0 for all functions to work as expected! +It needs at least [Synapse](https://github.com/matrix-org/synapse) v1.48.0 for all functions to work as expected! You get your server version with the request `/_synapse/admin/v1/server_version`. See also [Synapse version API](https://matrix-org.github.io/synapse/develop/admin_api/version_api.html). diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 31015ee..3165f01 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -69,7 +69,7 @@ const resourceMap = { return json.total_rooms; }, delete: params => ({ - endpoint: `/_synapse/admin/v1/rooms/${params.id}`, + endpoint: `/_synapse/admin/v2/rooms/${params.id}`, body: { block: false }, }), },