Cloud: clear cached settings if already logged-out at startup (#4264)

This commit is contained in:
John Richmond 2025-06-02 15:01:35 -07:00 committed by GitHub
parent af2e9ed725
commit 900de7b401
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,11 @@ export class SettingsService {
public initialize(): void {
this.loadCachedSettings()
// Clear cached settings if we have missed a log out.
if (this.authService.getState() == "logged-out" && this.settings) {
this.removeSettings()
}
this.authService.on("active-session", () => {
this.timer.start()
})