diff --git a/src/App.js b/src/App.js
index e9378b8..5c8e132 100644
--- a/src/App.js
+++ b/src/App.js
@@ -52,6 +52,7 @@ const App = () => (
+
diff --git a/src/components/users.js b/src/components/users.js
index d463379..e93e409 100644
--- a/src/components/users.js
+++ b/src/components/users.js
@@ -5,6 +5,7 @@ import ContactMailIcon from "@material-ui/icons/ContactMail";
import DevicesIcon from "@material-ui/icons/Devices";
import GetAppIcon from "@material-ui/icons/GetApp";
import SettingsInputComponentIcon from "@material-ui/icons/SettingsInputComponent";
+import ViewListIcon from "@material-ui/icons/ViewList";
import NotificationsIcon from "@material-ui/icons/Notifications";
import {
ArrayInput,
@@ -405,6 +406,38 @@ export const UserEdit = props => {
+ }
+ path="rooms"
+ >
+
+ "/rooms/" + id + "/show"}
+ >
+
+
+
+
+
+
+
+
}
diff --git a/src/synapse/dataProvider.js b/src/synapse/dataProvider.js
index 815d5dd..a329e66 100644
--- a/src/synapse/dataProvider.js
+++ b/src/synapse/dataProvider.js
@@ -130,6 +130,18 @@ const resourceMap = {
return json.total;
},
},
+ joined_rooms: {
+ map: jr => ({
+ id: jr,
+ }),
+ reference: id => ({
+ endpoint: `/_synapse/admin/v1/users/${id}/joined_rooms`,
+ }),
+ data: "joined_rooms",
+ total: json => {
+ return json.total;
+ },
+ },
servernotices: {
map: n => ({ id: n.event_id }),
create: data => ({