mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix new link scenario where default color is not set
This commit is contained in:
@@ -81,6 +81,14 @@ export async function startApp(): Promise<void> {
|
||||
|
||||
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<void>(resolve => {
|
||||
resolveOnAppView = resolve;
|
||||
@@ -414,12 +422,6 @@ export async function startApp(): Promise<void> {
|
||||
}
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user