Ensure a theme setting value is saved on first startup

This commit is contained in:
Fedor Indutny 2021-03-02 17:14:00 -08:00 committed by Josh Perez
parent 5447d0ad69
commit a2a0d56270

View file

@ -1900,7 +1900,10 @@ export async function startApp(): Promise<void> {
!hasThemeSetting &&
window.textsecure.storage.get('userAgent') === 'OWI'
) {
window.storage.put('theme-setting', 'ios');
window.storage.put(
'theme-setting',
await window.Events.getThemeSetting()
);
onChangeTheme();
}
const syncRequest = new window.textsecure.SyncRequest(