Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc committed Jan 17, 2024
1 parent 2c48aaa commit 8e9c01f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/script/E2EIdentity/E2EIdentityEnrollment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ export class E2EIHandler extends TypedEventEmitter<Events> {
// 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<void> {
Expand Down Expand Up @@ -340,7 +339,6 @@ export class E2EIHandler extends TypedEventEmitter<Events> {
return new Promise<void>(resolve => {
const {modalOptions, modalType} = getModalOptions({
type: ModalType.SUCCESS,
hideSecondary: false,
hideClose: false,
extraParams: {
isRenewal: isCertificateRenewal,
Expand Down Expand Up @@ -465,7 +463,8 @@ export class E2EIHandler extends TypedEventEmitter<Events> {

// 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);
}
}
}

0 comments on commit 8e9c01f

Please sign in to comment.