Skip to content

Commit

Permalink
Fix initial theme loading (#6819)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilopereirame committed Apr 18, 2024
1 parent 8b57dad commit 6e56552
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/login/PostLoginActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ export class PostLoginActions implements PostLoginAction {
locator.fileApp.clearFileData().catch((e) => console.log("Failed to clean file data", e))
locator.nativeContactsSyncManager()?.syncContacts()
}

// We already have user data to load themes
if (isApp() || isDesktop()) {
await this.storeNewCustomThemes()
}
}

async onFullLoginSuccess(loggedInEvent: LoggedInEvent): Promise<void> {
Expand Down Expand Up @@ -139,7 +144,6 @@ export class PostLoginActions implements PostLoginAction {
} else {
console.log("Skipping registering for notifications while setup dialog is shown")
}
this.storeNewCustomThemes()
}

if (this.logins.isGlobalAdminUserLoggedIn() && !isAdminClient()) {
Expand Down

0 comments on commit 6e56552

Please sign in to comment.