From 8e9c01f8ed80cb85cc6e0c5bde726eb2294af7fa Mon Sep 17 00:00:00 2001 From: Thomas Belin Date: Wed, 17 Jan 2024 17:45:04 +0100 Subject: [PATCH] cleanup --- src/script/E2EIdentity/E2EIdentityEnrollment.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/script/E2EIdentity/E2EIdentityEnrollment.ts b/src/script/E2EIdentity/E2EIdentityEnrollment.ts index b3386f1b124..c6715da74de 100644 --- a/src/script/E2EIdentity/E2EIdentityEnrollment.ts +++ b/src/script/E2EIdentity/E2EIdentityEnrollment.ts @@ -144,8 +144,7 @@ export class E2EIHandler extends TypedEventEmitter { // If the client already has a certificate, we don't need to start the enrollment return; } - const isFreshDevice = await isFreshMLSSelfClient(); - return this.showE2EINotificationMessage(ModalType.ENROLL, isFreshDevice); + return this.showE2EINotificationMessage(ModalType.ENROLL); } public async attemptRenewal(): Promise { @@ -340,7 +339,6 @@ export class E2EIHandler extends TypedEventEmitter { return new Promise(resolve => { const {modalOptions, modalType} = getModalOptions({ type: ModalType.SUCCESS, - hideSecondary: false, hideClose: false, extraParams: { isRenewal: isCertificateRenewal, @@ -465,7 +463,8 @@ export class E2EIHandler extends TypedEventEmitter { // If the timer is not active, show the notification modal if (this.config && !this.config.timer.isDelayTimerActive()) { - return this.showEnrollmentModal(modalType, disableSnooze); + const isFreshDevice = await isFreshMLSSelfClient(); + return this.showEnrollmentModal(modalType, isFreshDevice); } } }