diff --git a/background.html b/background.html index bcfa62864..40f80d749 100644 --- a/background.html +++ b/background.html @@ -63,8 +63,6 @@ - - diff --git a/js/modules/signal.js b/js/modules/signal.js index b9f6407c1..b73151c58 100644 --- a/js/modules/signal.js +++ b/js/modules/signal.js @@ -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, }; diff --git a/js/views/session_id_reset_view.js b/js/views/session_id_reset_view.js deleted file mode 100644 index cfe180ecc..000000000 --- a/js/views/session_id_reset_view.js +++ /dev/null @@ -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(); - }, - }); -})(); diff --git a/ts/components/session/SessionIDResetDialog.tsx b/ts/components/session/SessionIDResetDialog.tsx deleted file mode 100644 index 328d2ffb5..000000000 --- a/ts/components/session/SessionIDResetDialog.tsx +++ /dev/null @@ -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 = - 'We’ve 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 you’ll be able to use Session knowing you have the best privacy and security possible.'; - - return ( - null} theme={props.theme}> - -
- - - - {description} - -
- - -
- { - void deleteAccount('Session ID Upgrade'); - props.onClose(); - }} - buttonColor={SessionButtonColor.Danger} - /> -
-
- ); -}; - -export const SessionIDResetDialog = withTheme(SessionIDResetDialogInner);