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
1.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{1624:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var a=n(82),o=n.n(a),i=n(81),s=n.n(i),c=n(84),r=n.n(c),l=n(85),u=n(86),p=n(87),d=n(83),h=n(89),m=n(251),g=n(93);class y extends s.a.PureComponent{constructor(...e){super(...e),o()(this,"onOkClick",()=>{this.props.onFinished()}),o()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),p.a.fire(g.a.ViewUserSettings)}),o()(this,"onSetupClick",async()=>{h.a.createTrackedDialog("Restore Backup","",m.a,{onFinished:this.props.onFinished},null,!1,!0)})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons"),n=s.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("New Recovery Method")),a=s.a.createElement("p",null,Object(d.a)("A new recovery passphrase and key for Secure Messages have been detected.")),o=s.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 i;return i=u.a.get().getKeyBackupEnabled()?s.a.createElement("div",null,a,s.a.createElement("p",null,Object(d.a)("This session is encrypting history using the new recovery method.")),o,s.a.createElement(t,{primaryButton:Object(d.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):s.a.createElement("div",null,a,o,s.a.createElement(t,{primaryButton:Object(d.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(d.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),s.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:n},i)}}o()(y,"propTypes",{newVersionInfo:r.a.object,onFinished:r.a.func.isRequired})}}]);
//# sourceMappingURL=28.js.map