mandatory upgrade of session ids are now in force

pull/1424/head
Audric Ackermann 4 years ago
parent cbd0e63641
commit e6c2abff48
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -12,58 +12,39 @@ type Props = {
/* tslint:disable:use-simple-attributes */
const SessionIDResetDialogInner = (props: Props) => {
const [firstScreen, setFirstScreen] = useState(true);
const description =
'Weve upgraded Session IDs to make them even more private and secure. To ensure your continued privacy you are now required to upgrade.\n\n\
Your existing contacts and conversations will be lost, but youll be able to use Session knowing you have the best privacy and security possible.';
const descFirst =
'Weve upgraded Session IDs to make them even more private and secure. We recommend upgrading to a new Session ID now.\n\n\
You will lose existing contacts and conversations, but youll gain even more privacy and security. You will need to upgrade your Session ID eventually, but you can choose to delay the upgrade if you need to save contacts or conversations.';
const descSecond =
'Youre upgrading to a new Session ID. This will give you improved privacy and security, but it will clear ALL app data. Contacts and conversations will be lost. Proceed?';
return (
<SessionModal
title={
(firstScreen && 'Session IDs Just Got Better') || 'Upgrade Session ID?'
}
title="Mandatory Upgrade Session ID"
onOk={() => null}
onClose={props.onClose}
onClose={() => null}
theme={props.theme}
>
<div className="spacer-sm" />
<div className="session-modal__centered text-center">
{firstScreen && (
<SessionIcon
iconType={SessionIconType.Shield}
iconSize={SessionIconSize.Max}
theme={props.theme}
/>
)}
<SessionIcon
iconType={SessionIconType.Shield}
iconSize={SessionIconSize.Max}
theme={props.theme}
/>
<div className="spacer-lg" />
{(firstScreen && descFirst) || descSecond}
{description}
<div className="spacer-xs" />
</div>
<div className="spacer-lg" />
<div className="session-modal__button-group">
<SessionButton
text={(firstScreen && 'Upgrade Now') || window.i18n('ok')}
onClick={() => {
if (firstScreen) {
setFirstScreen(false);
} else {
window.deleteAccount('Session ID Upgrade');
props.onClose();
}
}}
buttonColor={SessionButtonColor.Danger}
/>
<SessionButton
text={(firstScreen && 'Upgrade Later') || window.i18n('cancel')}
text="Upgrade Now"
onClick={() => {
window.deleteAccount('Session ID Upgrade');
props.onClose();
}}
buttonColor={SessionButtonColor.Danger}
/>
</div>
</SessionModal>

Loading…
Cancel
Save