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.4 KiB
1 line
2.4 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{1528:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return T}));var a=t(6),o=t.n(a),i=t(16),c=t.n(i),r=t(9),s=t.n(r),l=t(8),u=t.n(l),p=t(13),d=t.n(p),h=t(12),m=t.n(h),y=t(7),g=t.n(y),k=t(14),w=t.n(k),v=t(5),f=t.n(v),b=t(0),B=t.n(b),C=t(2),O=t.n(C),S=t(3),E=t(4),j=t(10),F=t(1),D=t(18),T=function(e){function n(){var e,t;s()(this,n);for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return t=d()(this,(e=m()(n)).call.apply(e,[this].concat(i))),f()(g()(t),"onOkClick",(function(){t.props.onFinished()})),f()(g()(t),"onGoToSettingsClick",(function(){t.props.onFinished(),j.a.dispatch({action:"view_user_settings"})})),f()(g()(t),"onSetupClick",c()(o.a.mark((function e(){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=S.a("dialogs.keybackup.RestoreKeyBackupDialog"),D.a.createTrackedDialog("Restore Backup","",n,{onFinished:t.props.onFinished},null,!1,!0);case 2:case"end":return e.stop()}}),e)})))),t}return w()(n,e),u()(n,[{key:"render",value:function(){var e,n=S.a("views.dialogs.BaseDialog"),t=S.a("views.elements.DialogButtons"),a=B.a.createElement("span",{className:"mx_KeyBackupFailedDialog_title"},Object(F.a)("New Recovery Method")),o=B.a.createElement("p",null,Object(F.a)("A new recovery passphrase and key for Secure Messages have been detected.")),i=B.a.createElement("p",{className:"warning"},Object(F.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."));return e=E.a.get().getKeyBackupEnabled()?B.a.createElement("div",null,o,B.a.createElement("p",null,Object(F.a)("This device is encrypting history using the new recovery method.")),i,B.a.createElement(t,{primaryButton:Object(F.a)("OK"),onPrimaryButtonClick:this.onOkClick,cancelButton:Object(F.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})):B.a.createElement("div",null,o,i,B.a.createElement(t,{primaryButton:Object(F.a)("Set up Secure Messages"),onPrimaryButtonClick:this.onSetupClick,cancelButton:Object(F.a)("Go to Settings"),onCancel:this.onGoToSettingsClick})),B.a.createElement(n,{className:"mx_KeyBackupFailedDialog",onFinished:this.props.onFinished,title:a},e)}}]),n}(B.a.PureComponent);f()(T,"propTypes",{newVersionInfo:O.a.object,onFinished:O.a.func.isRequired})}}]); |