Merge pull request #2169 from matrix-org/dbkr/e2e_backups

Online incremental megolm backups (v2)
This commit is contained in:
David Baker 2018-11-21 18:37:43 +00:00 committed by GitHub
commit d714176fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 1251 additions and 4 deletions

View file

@ -737,6 +737,16 @@ module.exports = React.createClass({
</div>
);
}
let keyBackupSection;
if (SettingsStore.isFeatureEnabled("feature_keybackup")) {
const KeyBackupPanel = sdk.getComponent('views.settings.KeyBackupPanel');
keyBackupSection = <div className="mx_UserSettings_section">
<h3>{ _t("Key Backup") }</h3>
<KeyBackupPanel />
</div>;
}
return (
<div>
<h3>{ _t("Cryptography") }</h3>
@ -752,6 +762,7 @@ module.exports = React.createClass({
<div className="mx_UserSettings_section">
{ CRYPTO_SETTINGS.map( this._renderDeviceSetting ) }
</div>
{keyBackupSection}
</div>
);
},