From 6323dd6492ee8e8e750d9a4df766d454b43ba92a Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Fri, 21 May 2021 07:51:27 -0700 Subject: [PATCH] Go back to main process before delayed processing --- ts/background.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/background.ts b/ts/background.ts index 1f2ff7a29a..99c09dec42 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -2225,6 +2225,9 @@ export async function startApp(): Promise { newVersion ); + // Go back to main process before processing delayed actions + await window.sqlInitializer.goBackToMainProcess(); + profileKeyResponseQueue.start(); lightSessionResetQueue.start(); window.Whisper.deliveryReceiptQueue.start(); @@ -2249,7 +2252,6 @@ export async function startApp(): Promise { ); } - await window.sqlInitializer.goBackToMainProcess(); window.Signal.Util.setBatchingStrategy(false); const attachmentDownloadQueue = window.attachmentDownloadQueue || [];