From 507a73ddcbe1e76a61fc85d945a1c14b2bf590ab Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Mon, 3 Jun 2024 11:59:48 -0700 Subject: [PATCH] Show crash report modal earlier --- ts/background.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ts/background.ts b/ts/background.ts index 440833120..f1a8c9dbd 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -1172,6 +1172,12 @@ export async function startApp(): Promise { window.reduxActions.expiration.hydrateExpirationStatus( window.getBuildExpiration() ); + + // Process crash reports if any. Note that the modal won't be visible + // until the app will finish loading. + window.reduxActions.crashReports.setCrashReportCount( + await window.IPC.crashReports.getCount() + ); } }); // end of window.storage.onready() callback @@ -2052,11 +2058,6 @@ export async function startApp(): Promise { StartupQueue.flush(); await flushAttachmentDownloadQueue(); - // Process crash reports if any - window.reduxActions.crashReports.setCrashReportCount( - await window.IPC.crashReports.getCount() - ); - // Kick off a profile refresh if necessary, but don't wait for it, as failure is // tolerable. if (!routineProfileRefresher) {