Toggle between db in renderer and in main

This commit is contained in:
Josh Perez
2021-03-10 17:25:57 -05:00
committed by Josh Perez
parent 12d7f24d0f
commit f07da67c60
5 changed files with 380 additions and 120 deletions

View File

@@ -2066,6 +2066,7 @@ export async function startApp(): Promise<void> {
'App loaded - messages:',
messageReceiver.getProcessedCount()
);
window.sqlInitializer.goBackToMainProcess();
const attachmentDownloadQueue = window.attachmentDownloadQueue || [];
const THREE_DAYS_AGO = Date.now() - 3600 * 72 * 1000;
const MAX_ATTACHMENT_MSGS_TO_DOWNLOAD = 250;