diff --git a/src/components/views/settings/tabs/SecurityRoomSettingsTab.js b/src/components/views/settings/tabs/SecurityRoomSettingsTab.js index a13aafe092..d7645cd0ac 100644 --- a/src/components/views/settings/tabs/SecurityRoomSettingsTab.js +++ b/src/components/views/settings/tabs/SecurityRoomSettingsTab.js @@ -17,12 +17,8 @@ limitations under the License. import React from 'react'; import PropTypes from 'prop-types'; import {_t} from "../../../../languageHandler"; -import RoomProfileSettings from "../../room_settings/RoomProfileSettings"; import MatrixClientPeg from "../../../../MatrixClientPeg"; import sdk from "../../../../index"; -import AccessibleButton from "../../elements/AccessibleButton"; -import {MatrixClient} from "matrix-js-sdk"; -import dis from "../../../../dispatcher"; import LabelledToggleSwitch from "../../elements/LabelledToggleSwitch"; import {SettingLevel} from "../../../../settings/SettingsStore"; import Modal from "../../../../Modal"; @@ -182,7 +178,7 @@ export default class SecurityRoomSettingsTab extends React.Component { {_t("Anyone who knows the room's link, including guests")} - ) + ); } _renderHistory() { @@ -227,7 +223,7 @@ export default class SecurityRoomSettingsTab extends React.Component { {_t('Members only (since they joined)')} - ) + ); } render() { @@ -239,19 +235,10 @@ export default class SecurityRoomSettingsTab extends React.Component { const hasEncryptionPermission = room.currentState.mayClientSendStateEvent("m.room.encryption", client); const canEnableEncryption = !isEncrypted && hasEncryptionPermission; - let encryptionSection = ( -