Go back to main process before delayed processing

This commit is contained in:
Fedor Indutny
2021-05-21 07:51:27 -07:00
committed by GitHub
parent 525525fd0c
commit 6323dd6492

View File

@@ -2225,6 +2225,9 @@ export async function startApp(): Promise<void> {
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<void> {
);
}
await window.sqlInitializer.goBackToMainProcess();
window.Signal.Util.setBatchingStrategy(false);
const attachmentDownloadQueue = window.attachmentDownloadQueue || [];