diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 4778f1a76a..50fa18e075 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1635,7 +1635,6 @@ module.exports = React.createClass({ ); const showRoomRecoveryReminder = ( - SettingsStore.isFeatureEnabled("feature_keybackup") && SettingsStore.getValue("showRoomRecoveryReminder") && MatrixClientPeg.get().isRoomEncrypted(this.state.room.roomId) && !MatrixClientPeg.get().getKeyBackupEnabled() diff --git a/src/components/views/dialogs/DeviceVerifyDialog.js b/src/components/views/dialogs/DeviceVerifyDialog.js index d0643a60c4..47ee73c61c 100644 --- a/src/components/views/dialogs/DeviceVerifyDialog.js +++ b/src/components/views/dialogs/DeviceVerifyDialog.js @@ -22,7 +22,6 @@ import MatrixClientPeg from '../../../MatrixClientPeg'; import sdk from '../../../index'; import * as FormattingUtils from '../../../utils/FormattingUtils'; import { _t } from '../../../languageHandler'; -import SettingsStore from '../../../settings/SettingsStore'; import {verificationMethods} from 'matrix-js-sdk/lib/crypto'; const MODE_LEGACY = 'legacy'; @@ -48,7 +47,7 @@ export default class DeviceVerifyDialog extends React.Component { this._showSasEvent = null; this.state = { phase: PHASE_START, - mode: SettingsStore.isFeatureEnabled("feature_sas") ? MODE_SAS : MODE_LEGACY, + mode: MODE_SAS, sasVerified: false, }; } diff --git a/src/components/views/dialogs/LogoutDialog.js b/src/components/views/dialogs/LogoutDialog.js index 1f81472cc0..16b92af1c8 100644 --- a/src/components/views/dialogs/LogoutDialog.js +++ b/src/components/views/dialogs/LogoutDialog.js @@ -20,7 +20,6 @@ import sdk from '../../../index'; import dis from '../../../dispatcher'; import { _t } from '../../../languageHandler'; import MatrixClientPeg from '../../../MatrixClientPeg'; -import SettingsStore from "../../../settings/SettingsStore"; export default class LogoutDialog extends React.Component { constructor() { @@ -79,86 +78,59 @@ export default class LogoutDialog extends React.Component { } render() { - let description; - if (SettingsStore.isFeatureEnabled("feature_keybackup")) { - description =
{_t( - "When you log out, you'll lose your secure message history. To prevent " + - "this, set up a recovery method.", - )}
-{_t( - "Alternatively, advanced users can also manually export encryption keys in " + - "Settings before logging out.", {}, - { - a: sub => {sub}, - }, - )}
-{_t( + "When you log out, you'll lose your secure message history. To prevent " + + "this, set up a recovery method.", + )}
+{_t( + "Alternatively, advanced users can also manually export encryption keys in " + + "Settings before logging out.", {}, + { + a: sub => {sub}, + }, + )}
+