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.

1 line
1.7 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1515:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return h}));var n=a(5),s=a.n(n),i=a(0),o=a.n(i),c=a(2),r=a.n(c),l=a(3),u=a(6),d=a(1),p=a(9);class h extends o.a.PureComponent{constructor(...e){super(...e),s()(this,"onGoToSettingsClick",()=>{this.props.onFinished(),u.a.dispatch({action:"view_user_settings"})}),s()(this,"onSetupClick",()=>{this.props.onFinished(),p.a.createTrackedDialogAsync("Key Backup","Key Backup",Promise.all([a.e(0),a.e(1)]).then(a.bind(null,1506)),null,null,!1,!0)})}render(){const e=l.a("views.dialogs.BaseDialog"),t=l.a("views.elements.DialogButtons"),a=o.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(d.a)("Recovery Method Removed"));return o.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:a},o.a.createElement("div",null,o.a.createElement("p",null,Object(d.a)("This session has detected that your recovery passphrase and key for Secure Messages have been removed.")),o.a.createElement("p",null,Object(d.a)("If you did this accidentally, you can setup Secure Messages on this session which will re-encrypt this session's message history with a new recovery method.")),o.a.createElement("p",{className:"warning"},Object(d.a)("If you didn't remove the recovery method, an attacker may be trying to access your account. Change your account password and set a new recovery method immediately in Settings.")),o.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()(h,"propTypes",{onFinished:r.a.func.isRequired})}}]);