From b177843e459a01c8a4792f7fe7134f34c633ea84 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 14 Sep 2020 22:03:54 -0600 Subject: [PATCH 1/2] Remove defunct "always show encryption icons" setting It doesn't do anything in practice. Fixes https://github.com/vector-im/element-web/issues/8725 --- res/css/views/rooms/_EventTile.scss | 10 ---------- src/components/views/rooms/EventTile.js | 6 +----- .../settings/tabs/user/PreferencesUserSettingsTab.js | 1 - src/settings/Settings.ts | 5 ----- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/res/css/views/rooms/_EventTile.scss b/res/css/views/rooms/_EventTile.scss index eb0e1dd7b0..3b9a491db5 100644 --- a/res/css/views/rooms/_EventTile.scss +++ b/res/css/views/rooms/_EventTile.scss @@ -394,16 +394,6 @@ $left-gutter: 64px; opacity: 1; } -.mx_EventTile_e2eIcon_hidden { - display: none; -} - -/* always override hidden attribute for blocked and warning */ -.mx_EventTile_e2eIcon_hidden[src*="img/e2e-blocked.svg"], -.mx_EventTile_e2eIcon_hidden[src*="img/e2e-warning.svg"] { - display: block; -} - .mx_EventTile_keyRequestInfo { font-size: $font-12px; } diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 647ef585d7..ab9f240f2d 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -1027,11 +1027,7 @@ class E2ePadlock extends React.Component { tooltip = ; } - let classes = `mx_EventTile_e2eIcon mx_EventTile_e2eIcon_${this.props.icon}`; - if (!SettingsStore.getValue("alwaysShowEncryptionIcons")) { - classes += ' mx_EventTile_e2eIcon_hidden'; - } - + const classes = `mx_EventTile_e2eIcon mx_EventTile_e2eIcon_${this.props.icon}`; return (
Date: Mon, 14 Sep 2020 22:31:45 -0600 Subject: [PATCH 2/2] Update i18n --- src/i18n/strings/en_EN.json | 1 - 1 file changed, 1 deletion(-) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 93781160ce..fc8bef0fa8 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -474,7 +474,6 @@ "Show timestamps in 12 hour format (e.g. 2:30pm)": "Show timestamps in 12 hour format (e.g. 2:30pm)", "Always show message timestamps": "Always show message timestamps", "Autoplay GIFs and videos": "Autoplay GIFs and videos", - "Always show encryption icons": "Always show encryption icons", "Show a reminder to enable Secure Message Recovery in encrypted rooms": "Show a reminder to enable Secure Message Recovery in encrypted rooms", "Enable automatic language detection for syntax highlighting": "Enable automatic language detection for syntax highlighting", "Show avatars in user and room mentions": "Show avatars in user and room mentions",