From 8f128ef0dca19f0addb7705ae892d895e04381ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 1 Mar 2022 17:41:58 +0100 Subject: [PATCH] Expose redaction power level in room settings (#7599) --- .../views/settings/tabs/room/RolesRoomSettingsTab.tsx | 2 ++ src/i18n/strings/en_EN.json | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx index 7eb9237399..27d72a46f0 100644 --- a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx +++ b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.tsx @@ -58,6 +58,7 @@ const plEventsToShow: Record = { [EventType.RoomServerAcl]: { isState: true, hideForSpace: true }, [EventType.RoomPinnedEvents]: { isState: true, hideForSpace: true }, [EventType.Reaction]: { isState: false, hideForSpace: true }, + [EventType.RoomRedaction]: { isState: false, hideForSpace: true }, // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111) "im.vector.modular.widgets": { isState: true, hideForSpace: true }, @@ -241,6 +242,7 @@ export default class RolesRoomSettingsTab extends React.Component { [EventType.RoomEncryption]: _td("Enable room encryption"), [EventType.RoomServerAcl]: _td("Change server ACLs"), [EventType.Reaction]: _td("Send reactions"), + [EventType.RoomRedaction]: _td("Remove messages sent by me"), // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111) "im.vector.modular.widgets": isSpaceRoom ? null : _td("Modify widgets"), diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 33d0a4f898..d70c17cb86 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1580,6 +1580,7 @@ "Enable room encryption": "Enable room encryption", "Change server ACLs": "Change server ACLs", "Send reactions": "Send reactions", + "Remove messages sent by me": "Remove messages sent by me", "Modify widgets": "Modify widgets", "Manage pinned events": "Manage pinned events", "Default role": "Default role",