diff --git a/src/components/rooms.js b/src/components/rooms.js index 0299efb..5cf4369 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -1,4 +1,4 @@ -import React from "react"; +import React, { Fragment } from "react"; import { connect } from "react-redux"; import { BooleanField, diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js index 9d3e015..361cfbc 100644 --- a/src/synapse/dataProvider.js +++ b/src/synapse/dataProvider.js @@ -66,6 +66,11 @@ const resourceMap = { total: json => { return json.total_rooms; }, + delete: id => ({ + endpoint: `/_synapse/admin/v1/rooms/${id}/delete`, + body: { block: false }, + method: "POST", + }), }, devices: { map: d => ({