refactor(web): dependency management (#2386)
This commit is contained in:
@@ -264,10 +264,15 @@ export class SessionManager
|
||||
}
|
||||
}
|
||||
|
||||
/** Unlike EncryptionService.hasAccount, isSignedIn can only be read once the application is unlocked */
|
||||
public isSignedIn(): boolean {
|
||||
return this.getUser() != undefined
|
||||
}
|
||||
|
||||
public isSignedOut(): boolean {
|
||||
return !this.isSignedIn()
|
||||
}
|
||||
|
||||
public isSignedIntoFirstPartyServer(): boolean {
|
||||
return this.isSignedIn() && !this.apiService.isThirdPartyHostUsed()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user