diff --git a/background.html b/background.html
index 852ffa77d..b82d472e5 100644
--- a/background.html
+++ b/background.html
@@ -381,7 +381,6 @@
-
diff --git a/background_test.html b/background_test.html
index 42daa9eae..673b2ecdf 100644
--- a/background_test.html
+++ b/background_test.html
@@ -391,7 +391,6 @@
-
diff --git a/js/background.js b/js/background.js
index 2a67928c9..74ea083c2 100644
--- a/js/background.js
+++ b/js/background.js
@@ -698,7 +698,6 @@
confirmDialog.render();
};
- window.showQRDialog = window.owsDesktopApp.appView.showQRDialog;
window.showSeedDialog = window.owsDesktopApp.appView.showSeedDialog;
window.showPasswordDialog = window.owsDesktopApp.appView.showPasswordDialog;
window.showEditProfileDialog = async callback => {
@@ -1109,13 +1108,6 @@
}
});
- Whisper.events.on('showQRDialog', async () => {
- if (appView) {
- const ourNumber = textsecure.storage.user.getNumber();
- appView.showQRDialog(ourNumber);
- }
- });
-
Whisper.events.on('showDevicePairingDialog', async (options = {}) => {
if (appView) {
appView.showDevicePairingDialog(options);
diff --git a/js/modules/signal.js b/js/modules/signal.js
index e5c1ca6f0..a5c459f29 100644
--- a/js/modules/signal.js
+++ b/js/modules/signal.js
@@ -60,9 +60,6 @@ const {
const { SessionToast } = require('../../ts/components/session/SessionToast');
const { SessionToggle } = require('../../ts/components/session/SessionToggle');
const { SessionModal } = require('../../ts/components/session/SessionModal');
-const {
- SessionQRModal,
-} = require('../../ts/components/session/SessionQRModal');
const {
SessionSeedModal,
} = require('../../ts/components/session/SessionSeedModal');
@@ -304,7 +301,6 @@ exports.setup = (options = {}) => {
SessionToggle,
SessionConfirm,
SessionModal,
- SessionQRModal,
SessionSeedModal,
SessionPasswordModal,
SessionPasswordPrompt,
diff --git a/js/views/app_view.js b/js/views/app_view.js
index b7a349bd3..8a254c641 100644
--- a/js/views/app_view.js
+++ b/js/views/app_view.js
@@ -169,12 +169,6 @@
const dialog = new Whisper.SeedDialogView();
this.el.prepend(dialog.el);
},
- showQRDialog(string) {
- const dialog = new Whisper.QRDialogView({
- value: string,
- });
- this.el.append(dialog.el);
- },
showDevicePairingDialog(options) {
const dialog = new Whisper.DevicePairingDialogView(options);
this.el.prepend(dialog.el);
diff --git a/js/views/qr_dialog_view.js b/js/views/qr_dialog_view.js
deleted file mode 100644
index 6019f87c9..000000000
--- a/js/views/qr_dialog_view.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/* global Whisper */
-
-// eslint-disable-next-line func-names
-(function() {
- 'use strict';
-
- window.Whisper = window.Whisper || {};
-
- Whisper.QRDialogView = Whisper.View.extend({
- className: 'loki-dialog qr-dialog modal',
- initialize(options) {
- this.value = options.value || '';
- this.close = this.close.bind(this);
-
- this.render();
- },
-
- render() {
- this.dialogView = new Whisper.ReactWrapperView({
- className: 'qr-dialog-wrapper',
- Component: window.Signal.Components.SessionQRModal,
- props: {
- value: this.value,
- onClose: this.close,
- },
- });
-
- this.$el.append(this.dialogView.el);
- return this;
- },
-
- close() {
- this.remove();
- },
- });
-})();
diff --git a/test/index.html b/test/index.html
index 7d9622297..3419dd3f9 100644
--- a/test/index.html
+++ b/test/index.html
@@ -423,7 +423,6 @@
-
diff --git a/ts/components/EditProfileDialog.tsx b/ts/components/EditProfileDialog.tsx
index 349d0db57..7eb7fa0e3 100644
--- a/ts/components/EditProfileDialog.tsx
+++ b/ts/components/EditProfileDialog.tsx
@@ -134,7 +134,7 @@ export class EditProfileDialog extends React.Component {
)}
diff --git a/ts/components/session/SessionQRModal.tsx b/ts/components/session/SessionQRModal.tsx
deleted file mode 100644
index dc71ee4cd..000000000
--- a/ts/components/session/SessionQRModal.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import React from 'react';
-import { QRCode } from 'react-qr-svg';
-
-import { SessionModal } from './SessionModal';
-import { SessionButton } from './SessionButton';
-import { SessionHtmlRenderer } from './SessionHTMLRenderer';
-
-interface Props {
- value: string;
- onClose: any;
-}
-
-export class SessionQRModal extends React.Component {
- constructor(props: any) {
- super(props);
- }
- public render() {
- const { value, onClose } = this.props;
-
- // Foreground equivalent to .session-modal background color
- const bgColor = '#FFFFFF';
- const fgColor = '#1B1B1B';
-
- return (
- null}
- onClose={onClose}
- >
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
- }
-}
diff --git a/ts/window.d.ts b/ts/window.d.ts
index d6b245677..85891830e 100644
--- a/ts/window.d.ts
+++ b/ts/window.d.ts
@@ -79,7 +79,6 @@ declare global {
shortenPubkey: any;
showEditProfileDialog: any;
showPasswordDialog: any;
- showQRDialog: any;
showSeedDialog: any;
storage: any;
textsecure: LibTextsecure;