remove SessionId reset dialog

consider user had the time to update now
This commit is contained in:
Audric Ackermann 2021-08-05 14:26:31 +10:00 committed by audric
parent 3dd1a534d3
commit 67f642596d
4 changed files with 0 additions and 90 deletions

View file

@ -63,8 +63,6 @@
<script type="text/javascript" src="js/views/session_registration_view.js"></script>
<script type="text/javascript" src="js/views/app_view.js"></script>
<script type="text/javascript" src="js/views/session_id_reset_view.js"></script>
<!-- CRYPTO -->
<script type="text/javascript" src="js/wall_clock_listener.js"></script>
</head>

View file

@ -12,7 +12,6 @@ const LinkPreviews = require('./link_previews');
const { Message } = require('../../ts/components/conversation/Message');
// Components
const { SessionIDResetDialog } = require('../../ts/components/session/SessionIDResetDialog');
const { SessionRegistrationView } = require('../../ts/components/session/SessionRegistrationView');
const { SessionInboxView } = require('../../ts/components/session/SessionInboxView');
@ -121,7 +120,6 @@ exports.setup = (options = {}) => {
const Components = {
SessionInboxView,
SessionIDResetDialog,
SessionRegistrationView,
Message,
};

View file

@ -1,35 +0,0 @@
/* global Whisper */
// eslint-disable-next-line func-names
(function() {
'use strict';
window.Whisper = window.Whisper || {};
Whisper.SessionIDResetDialog = Whisper.View.extend({
className: 'loki-dialog session-id-reset-dialog modal',
initialize(options) {
this.close = this.close.bind(this);
this.theme = options.theme;
this.render();
},
render() {
this.dialogView = new Whisper.ReactWrapperView({
className: 'session-id-dialog-wrapper',
Component: window.Signal.Components.SessionIDResetDialog,
props: {
onClose: this.close,
theme: this.theme,
},
});
this.$el.append(this.dialogView.el);
return this;
},
close() {
this.remove();
},
});
})();

View file

@ -1,51 +0,0 @@
import React from 'react';
import { SessionModal } from './SessionModal';
import { SessionButton, SessionButtonColor } from './SessionButton';
import { DefaultTheme, withTheme } from 'styled-components';
import { SessionIcon, SessionIconSize, SessionIconType } from './icon';
import { deleteAccount } from '../../util/accountManager';
import { SpacerLG, SpacerSM, SpacerXS } from '../basic/Text';
type Props = {
onClose: any;
theme: DefaultTheme;
};
/* tslint:disable:use-simple-attributes */
const SessionIDResetDialogInner = (props: Props) => {
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.';
return (
<SessionModal title="Mandatory Upgrade Session ID" onClose={() => null} theme={props.theme}>
<SpacerSM />
<div className="session-modal__centered text-center">
<SessionIcon
iconType={SessionIconType.Shield}
iconSize={SessionIconSize.Max}
theme={props.theme}
/>
<SpacerLG />
{description}
<SpacerXS />
</div>
<SpacerLG />
<div className="session-modal__button-group">
<SessionButton
text="Upgrade Now"
onClick={() => {
void deleteAccount('Session ID Upgrade');
props.onClose();
}}
buttonColor={SessionButtonColor.Danger}
/>
</div>
</SessionModal>
);
};
export const SessionIDResetDialog = withTheme(SessionIDResetDialogInner);