Remove key backup & sas from labs
This commit is contained in:
parent
2cd25e0077
commit
043f1ab3f0
5 changed files with 53 additions and 96 deletions
|
@ -1635,7 +1635,6 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
|
|
||||||
const showRoomRecoveryReminder = (
|
const showRoomRecoveryReminder = (
|
||||||
SettingsStore.isFeatureEnabled("feature_keybackup") &&
|
|
||||||
SettingsStore.getValue("showRoomRecoveryReminder") &&
|
SettingsStore.getValue("showRoomRecoveryReminder") &&
|
||||||
MatrixClientPeg.get().isRoomEncrypted(this.state.room.roomId) &&
|
MatrixClientPeg.get().isRoomEncrypted(this.state.room.roomId) &&
|
||||||
!MatrixClientPeg.get().getKeyBackupEnabled()
|
!MatrixClientPeg.get().getKeyBackupEnabled()
|
||||||
|
|
|
@ -48,7 +48,7 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
this._showSasEvent = null;
|
this._showSasEvent = null;
|
||||||
this.state = {
|
this.state = {
|
||||||
phase: PHASE_START,
|
phase: PHASE_START,
|
||||||
mode: SettingsStore.isFeatureEnabled("feature_sas") ? MODE_SAS : MODE_LEGACY,
|
mode: MODE_SAS,
|
||||||
sasVerified: false,
|
sasVerified: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,9 +79,7 @@ export default class LogoutDialog extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let description;
|
const description = <div>
|
||||||
if (SettingsStore.isFeatureEnabled("feature_keybackup")) {
|
|
||||||
description = <div>
|
|
||||||
<p>{_t(
|
<p>{_t(
|
||||||
"When you log out, you'll lose your secure message history. To prevent " +
|
"When you log out, you'll lose your secure message history. To prevent " +
|
||||||
"this, set up a recovery method.",
|
"this, set up a recovery method.",
|
||||||
|
@ -94,16 +92,7 @@ export default class LogoutDialog extends React.Component {
|
||||||
},
|
},
|
||||||
)}</p>
|
)}</p>
|
||||||
</div>;
|
</div>;
|
||||||
} else {
|
|
||||||
description = <div>{_t(
|
|
||||||
"For security, logging out will delete any end-to-end " +
|
|
||||||
"encryption keys from this browser. If you want to be able " +
|
|
||||||
"to decrypt your conversation history from future Riot sessions, " +
|
|
||||||
"please export your room keys for safe-keeping.",
|
|
||||||
)}</div>;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (SettingsStore.isFeatureEnabled("feature_keybackup")) {
|
|
||||||
if (!MatrixClientPeg.get().getKeyBackupEnabled()) {
|
if (!MatrixClientPeg.get().getKeyBackupEnabled()) {
|
||||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||||
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
||||||
|
@ -146,21 +135,5 @@ export default class LogoutDialog extends React.Component {
|
||||||
onFinished={this._onFinished}
|
onFinished={this._onFinished}
|
||||||
/>);
|
/>);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
const QuestionDialog = sdk.getComponent('views.dialogs.QuestionDialog');
|
|
||||||
return (<QuestionDialog
|
|
||||||
hasCancelButton={true}
|
|
||||||
title={_t("Sign out")}
|
|
||||||
description={description}
|
|
||||||
button={_t("Sign out")}
|
|
||||||
extraButtons={[
|
|
||||||
(<button key="export" className="mx_Dialog_primary"
|
|
||||||
onClick={this._onExportE2eKeysClicked}>
|
|
||||||
{ _t("Export E2E room keys") }
|
|
||||||
</button>),
|
|
||||||
]}
|
|
||||||
onFinished={this._onFinished}
|
|
||||||
/>);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,10 +196,8 @@ export default class SecuritySettingsTab extends React.Component {
|
||||||
const DevicesPanel = sdk.getComponent('views.settings.DevicesPanel');
|
const DevicesPanel = sdk.getComponent('views.settings.DevicesPanel');
|
||||||
const SettingsFlag = sdk.getComponent('views.elements.SettingsFlag');
|
const SettingsFlag = sdk.getComponent('views.elements.SettingsFlag');
|
||||||
|
|
||||||
let keyBackup = null;
|
|
||||||
if (SettingsStore.isFeatureEnabled("feature_keybackup")) {
|
|
||||||
const KeyBackupPanel = sdk.getComponent('views.settings.KeyBackupPanel');
|
const KeyBackupPanel = sdk.getComponent('views.settings.KeyBackupPanel');
|
||||||
keyBackup = (
|
const keyBackup = (
|
||||||
<div className='mx_SettingsTab_section'>
|
<div className='mx_SettingsTab_section'>
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Key backup")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Key backup")}</span>
|
||||||
<div className='mx_SettingsTab_subsectionText'>
|
<div className='mx_SettingsTab_subsectionText'>
|
||||||
|
@ -207,7 +205,6 @@ export default class SecuritySettingsTab extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SettingsTab mx_SecuritySettingsTab">
|
<div className="mx_SettingsTab mx_SecuritySettingsTab">
|
||||||
|
|
|
@ -105,24 +105,12 @@ export const SETTINGS = {
|
||||||
supportedLevels: LEVELS_FEATURE,
|
supportedLevels: LEVELS_FEATURE,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
"feature_keybackup": {
|
|
||||||
isFeature: true,
|
|
||||||
displayName: _td("Backup of encryption keys to server"),
|
|
||||||
supportedLevels: LEVELS_FEATURE,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
"feature_state_counters": {
|
"feature_state_counters": {
|
||||||
isFeature: true,
|
isFeature: true,
|
||||||
displayName: _td("Render simple counters in room header"),
|
displayName: _td("Render simple counters in room header"),
|
||||||
supportedLevels: LEVELS_FEATURE,
|
supportedLevels: LEVELS_FEATURE,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
"feature_sas": {
|
|
||||||
isFeature: true,
|
|
||||||
displayName: _td("Two-way device verification using short text"),
|
|
||||||
supportedLevels: LEVELS_FEATURE,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
"MessageComposerInput.suggestEmoji": {
|
"MessageComposerInput.suggestEmoji": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
displayName: _td('Enable Emoji suggestions while typing'),
|
displayName: _td('Enable Emoji suggestions while typing'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue