You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.0 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{1126:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return g}));var a=n(2),o=n.n(a),s=n(43),i=n.n(s),c=n(45),r=n.n(c),l=n(46),u=n(47),p=n(48),d=n(44),h=n(49),m=n(54);class g extends i.a.PureComponent{constructor(...e){super(...e),o()(this,"onOkClick",()=>{this.props.onFinished()}),o()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),p.a.fire(m.a.ViewUserSettings)}),o()(this,"onSetupClick",async()=>{const e=l.getComponent("dialogs.keybackup.RestoreKeyBackupDialog");h.a.createTrackedDialog("Restore Backup","",e,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=i.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("New Recovery Method")),a=i.a.createElement("p",null,Object(d.a)("A new recovery passphrase and key for Secure Messages have been detected.")),o=i.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't set the new recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings."));let s;return s=u.a.get().getKeyBackupEnabled()?i.a.createElement("div",null,a,i.a.createElement("p",null,Object(d.a)("This session is encrypting history using the new recovery method.")),o,i.a.createElement(t,{primaryButton:Object(d.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):i.a.createElement("div",null,a,o,i.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),i.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},s)}}o()(g,"propTypes",{newVersionInfo:r.a.object,onFinished:r.a.func.isRequired})}}]);
//# sourceMappingURL=25.js.map