feat: Automatic plaintext backup option in Preferences > Backups will backup your notes and tags into plaintext, unencrypted folders on your computer. In addition, automatic encrypted text backups preference management has moved from the top-level menu in the desktop app to Preferences > Backups. (#2322)
This commit is contained in:
@@ -101,6 +101,7 @@ export class SNSessionManager
|
||||
private httpService: HttpServiceInterface,
|
||||
private sessionStorageMapper: MapperInterface<Session, Record<string, unknown>>,
|
||||
private legacySessionStorageMapper: MapperInterface<LegacySession, Record<string, unknown>>,
|
||||
private workspaceIdentifier: string,
|
||||
protected override internalEventBus: InternalEventBusInterface,
|
||||
) {
|
||||
super(internalEventBus)
|
||||
@@ -130,6 +131,14 @@ export class SNSessionManager
|
||||
super.deinit()
|
||||
}
|
||||
|
||||
public getWorkspaceDisplayIdentifier(): string {
|
||||
if (this.user) {
|
||||
return this.user.email
|
||||
} else {
|
||||
return this.workspaceIdentifier
|
||||
}
|
||||
}
|
||||
|
||||
private setUser(user?: User) {
|
||||
this.user = user
|
||||
this.apiService.setUser(user)
|
||||
|
||||
Reference in New Issue
Block a user