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

(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{1529:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return E}));var a=t(9),i=t.n(a),o=t(8),c=t.n(o),s=t(13),r=t.n(s),l=t(12),u=t.n(l),d=t(7),p=t.n(d),h=t(14),y=t.n(h),m=t(5),v=t.n(m),g=t(0),w=t.n(g),k=t(2),f=t.n(k),b=t(3),S=t(10),B=t(1),C=t(18),E=function(e){function n(){var e,a;i()(this,n);for(var o=arguments.length,c=new Array(o),s=0;s<o;s++)c[s]=arguments[s];return a=r()(this,(e=u()(n)).call.apply(e,[this].concat(c))),v()(p()(a),"onGoToSettingsClick",(function(){a.props.onFinished(),S.a.dispatch({action:"view_user_settings"})})),v()(p()(a),"onSetupClick",(function(){a.props.onFinished(),C.a.createTrackedDialogAsync("Key Backup","Key Backup",Promise.all([t.e(0),t.e(1)]).then(t.bind(null,1522)),null,null,!1,!0)})),a}return y()(n,e),c()(n,[{key:"render",value:function(){var e=b.a("views.dialogs.BaseDialog"),n=b.a("views.elements.DialogButtons"),t=w.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(B.a)("Recovery Method Removed"));return w.a.createElement(e,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:t},w.a.createElement("div",null,w.a.createElement("p",null,Object(B.a)("This device has detected that your recovery passphrase and key for Secure Messages have been removed.")),w.a.createElement("p",null,Object(B.a)("If you did this accidentally, you can setup Secure Messages on this device which will re-encrypt this device's message history with a new recovery method.")),w.a.createElement("p",{className:"warning"},Object(B.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.")),w.a.createElement(n,{primaryButton:Object(B.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(B.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})))}}]),n}(w.a.PureComponent);v()(E,"propTypes",{onFinished:f.a.func.isRequired})}}]);