From 353810ce633cf5c00c996112f8942cf356af2793 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 24 Apr 2020 10:01:00 -0600 Subject: [PATCH] Remove invite only padlocks feature flag Fixes https://github.com/vector-im/riot-web/issues/13366 Only known issue on this is https://github.com/vector-im/riot-web/issues/12148 This has been pre-approved by Product. --- src/components/views/rooms/InviteOnlyIcon.js | 5 ----- src/i18n/strings/en_EN.json | 1 - src/settings/Settings.js | 6 ------ 3 files changed, 12 deletions(-) diff --git a/src/components/views/rooms/InviteOnlyIcon.js b/src/components/views/rooms/InviteOnlyIcon.js index acaa12303b..b02f9843d9 100644 --- a/src/components/views/rooms/InviteOnlyIcon.js +++ b/src/components/views/rooms/InviteOnlyIcon.js @@ -17,7 +17,6 @@ limitations under the License. import React from 'react'; import { _t } from '../../../languageHandler'; import * as sdk from '../../../index'; -import SettingsStore from '../../../settings/SettingsStore'; export default class InviteOnlyIcon extends React.Component { constructor() { @@ -39,10 +38,6 @@ export default class InviteOnlyIcon extends React.Component { render() { const classes = this.props.collapsedPanel ? "mx_InviteOnlyIcon_small": "mx_InviteOnlyIcon_large"; - if (!SettingsStore.isFeatureEnabled("feature_invite_only_padlocks")) { - return null; - } - const Tooltip = sdk.getComponent("elements.Tooltip"); let tooltip; if (this.state.hover) { diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index c141931dd7..ce39731808 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -401,7 +401,6 @@ "Support adding custom themes": "Support adding custom themes", "Enable cross-signing to verify per-user instead of per-session": "Enable cross-signing to verify per-user instead of per-session", "Show info about bridges in room settings": "Show info about bridges in room settings", - "Show padlocks on invite only rooms": "Show padlocks on invite only rooms", "Enable Emoji suggestions while typing": "Enable Emoji suggestions while typing", "Use compact timeline layout": "Use compact timeline layout", "Show a placeholder for removed messages": "Show a placeholder for removed messages", diff --git a/src/settings/Settings.js b/src/settings/Settings.js index d7374718d3..b85461de55 100644 --- a/src/settings/Settings.js +++ b/src/settings/Settings.js @@ -164,12 +164,6 @@ export const SETTINGS = { displayName: _td("Show info about bridges in room settings"), default: false, }, - "feature_invite_only_padlocks": { - isFeature: true, - supportedLevels: LEVELS_FEATURE, - displayName: _td("Show padlocks on invite only rooms"), - default: true, - }, "MessageComposerInput.suggestEmoji": { supportedLevels: LEVELS_ACCOUNT_SETTINGS, displayName: _td('Enable Emoji suggestions while typing'),