From 4d9371dfe70ed2c16d979e122a25886b4190816a Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 19 Nov 2020 13:55:01 +1100 Subject: [PATCH] fix SessionRegistrationView missing from signal.js --- js/background.js | 2 +- js/modules/signal.js | 5 +++++ ts/components/session/settings/SessionSettings.tsx | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/js/background.js b/js/background.js index 6991500e5..76d8e3e41 100644 --- a/js/background.js +++ b/js/background.js @@ -982,7 +982,7 @@ } }); - Whisper.events.on('showPasswordDialog', async (options) => { + Whisper.events.on('showPasswordDialog', async options => { if (appView) { appView.showPasswordDialog(options); } diff --git a/js/modules/signal.js b/js/modules/signal.js index 1dc44c965..6cf322fe7 100644 --- a/js/modules/signal.js +++ b/js/modules/signal.js @@ -49,6 +49,10 @@ const { SessionModal } = require('../../ts/components/session/SessionModal'); const { SessionSeedModal, } = require('../../ts/components/session/SessionSeedModal'); +const { + SessionRegistrationView, +} = require('../../ts/components/session/SessionRegistrationView'); + const { SessionInboxView, } = require('../../ts/components/session/SessionInboxView'); @@ -255,6 +259,7 @@ exports.setup = (options = {}) => { SessionSeedModal, SessionPasswordModal, SessionPasswordPrompt, + SessionRegistrationView, MediaGallery, Message, Quote, diff --git a/ts/components/session/settings/SessionSettings.tsx b/ts/components/session/settings/SessionSettings.tsx index 259468595..7573df00a 100644 --- a/ts/components/session/settings/SessionSettings.tsx +++ b/ts/components/session/settings/SessionSettings.tsx @@ -546,10 +546,10 @@ export class SettingsView extends React.Component { buttonColor: SessionButtonColor.Primary, }, onClick: () => { - window.Whisper.events.trigger('showPasswordDialog', { - action: 'change', - onSuccess: this.onPasswordUpdated, - }); + window.Whisper.events.trigger('showPasswordDialog', { + action: 'change', + onSuccess: this.onPasswordUpdated, + }); }, confirmationDialogParams: undefined, }, @@ -571,7 +571,7 @@ export class SettingsView extends React.Component { action: 'remove', onSuccess: this.onPasswordUpdated, }); - }, + }, confirmationDialogParams: undefined, }, ];