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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 || [];