From fac09cb9bbc9b0a5fb594628eca9c72b1309862b Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 7 May 2024 13:01:24 +0200 Subject: [PATCH] Add erasure status to users (#294) --- README.md | 2 +- src/components/users.tsx | 2 ++ src/i18n/de.ts | 1 + src/i18n/en.ts | 1 + src/i18n/index.d.ts | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5509fe..777821c 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/element-hq/synapse) v1.52.0 for all functions to work as expected! +It needs at least [Synapse](https://github.com/element-hq/synapse) v1.71.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://element-hq.github.io/synapse/latest/admin_api/version_api.html). diff --git a/src/components/users.tsx b/src/components/users.tsx index 4e26505..2a5ba4f 100644 --- a/src/components/users.tsx +++ b/src/components/users.tsx @@ -119,6 +119,7 @@ export const UserList = (props: ListProps) => ( + @@ -200,6 +201,7 @@ export const UserEdit = (props: EditProps) => { + diff --git a/src/i18n/de.ts b/src/i18n/de.ts index 98a97eb..d5903b7 100644 --- a/src/i18n/de.ts +++ b/src/i18n/de.ts @@ -105,6 +105,7 @@ const de: SynapseTranslationMessages = { is_guest: "Gast", admin: "Server Administrator", deactivated: "Deaktiviert", + erased: "Gelöscht", guests: "Zeige Gäste", show_deactivated: "Zeige deaktivierte Benutzer", user_id: "Suche Benutzer", diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 171a546..680dae5 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -104,6 +104,7 @@ const en: SynapseTranslationMessages = { is_guest: "Guest", admin: "Server Administrator", deactivated: "Deactivated", + erased: "Erased", guests: "Show guests", show_deactivated: "Show deactivated users", user_id: "Search user", diff --git a/src/i18n/index.d.ts b/src/i18n/index.d.ts index 2e23cde..ed8ab12 100644 --- a/src/i18n/index.d.ts +++ b/src/i18n/index.d.ts @@ -100,6 +100,7 @@ interface SynapseTranslationMessages extends TranslationMessages { is_guest: string; admin: string; deactivated: string; + erased?: string; // TODO: fa, fr, it, zh guests: string; show_deactivated: string; user_id: string;