diff --git a/ts/background.ts b/ts/background.ts index c2a8242fd5..aedb6f1a21 100644 --- a/ts/background.ts +++ b/ts/background.ts @@ -79,6 +79,14 @@ export async function startApp(): Promise { ourProfileKeyService.initialize(window.storage); + window.storage.onready(() => { + if (!window.storage.get('defaultConversationColor')) { + window.storage.put('defaultConversationColor', { + color: 'ultramarine', + }); + } + }); + let resolveOnAppView: (() => void) | undefined; const onAppView = new Promise(resolve => { resolveOnAppView = resolve; @@ -412,12 +420,6 @@ export async function startApp(): Promise { } first = false; - if (!window.storage.get('defaultConversationColor')) { - window.storage.put('defaultConversationColor', { - color: 'ultramarine', - }); - } - cleanupSessionResets(); const retryPlaceholders = new window.Signal.Util.RetryPlaceholders(); window.Signal.Services.retryPlaceholders = retryPlaceholders;