From 998d3817c6f45c3f3f03172902fbaa34dfeb81c3 Mon Sep 17 00:00:00 2001
From: Aine <97398200+aine-etke@users.noreply.github.com>
Date: Thu, 21 Nov 2024 13:46:11 +0200
Subject: [PATCH] Add rooms' avatars (#158)
* Add room avatars
* update readme
---
README.md | 1 +
src/resources/rooms.tsx | 9 ++++++---
src/resources/users.tsx | 34 +++++++++++++++++-----------------
3 files changed, 24 insertions(+), 20 deletions(-)
diff --git a/README.md b/README.md
index 4be433f..a190e14 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,7 @@ The following changes are already implemented:
* 🔍 [Allow providing login form details via GET params](https://github.com/etkecc/synapse-admin/pull/140)
* 🎨 [Add preferred theme colors to login page and footer](https://github.com/etkecc/synapse-admin/pull/155)
* 🔰 [Add "Assign Admin" button to the rooms](https://github.com/etkecc/synapse-admin/pull/156)
+* 🖼️ [Add rooms' avatars](https://github.com/etkecc/synapse-admin/pull/158)
_the list will be updated as new changes are added_
diff --git a/src/resources/rooms.tsx b/src/resources/rooms.tsx
index 58af12c..eb8ec5b 100644
--- a/src/resources/rooms.tsx
+++ b/src/resources/rooms.tsx
@@ -216,7 +216,7 @@ export const RoomShow = (props: ShowProps) => {
} path="members">
- "/users/" + id} bulkActionButtons={false}>
+ "/users/" + id} bulkActionButtons={false}>
{
} path="state">
-
+
`${JSON.stringify(record.content, null, 2)}`} />
@@ -305,7 +305,7 @@ export const RoomShow = (props: ShowProps) => {
{translate("resources.rooms.helper.forward_extremities")}
-
+
@@ -358,6 +358,9 @@ export const RoomList = (props: ListProps) => {
bulkActionButtons={}
omit={["joined_local_members", "state_events", "version", "federatable"]}
>
+
+
+
{
} path="devices">
-
+
@@ -477,7 +477,7 @@ export const UserEdit = (props: EditProps) => {
} path="connections">
-
+
@@ -499,7 +499,7 @@ export const UserEdit = (props: EditProps) => {
perPage={50}
sort={{ field: "created_ts", order: "DESC" }}
>
-
+
@@ -516,19 +516,19 @@ export const UserEdit = (props: EditProps) => {
} path="rooms">
- "/rooms/" + id + "/show"} bulkActionButtons={false}>
-
-
-
-
-
-
+ "/rooms/" + id + "/show"} bulkActionButtons={false}>
+
+
+
+
+
+
+
+
+
+
+
+
@@ -538,7 +538,7 @@ export const UserEdit = (props: EditProps) => {
path="pushers"
>
-
+