fix(snjs): notify http service of refresh session

This commit is contained in:
Karol Sójko
2023-01-18 14:38:26 +01:00
parent 76937ba68c
commit 271db1c3dc
4 changed files with 35 additions and 8 deletions

View File

@@ -75,6 +75,7 @@ import {
AuthManager,
RevisionClientInterface,
RevisionManager,
ApiServiceEvent,
} from '@standardnotes/services'
import { BackupServiceInterface, FilesClientInterface } from '@standardnotes/files'
import { ComputePrivateUsername } from '@standardnotes/encryption'
@@ -1288,6 +1289,7 @@ export class SNApplication implements ApplicationInterface, AppGroupManagedAppli
this.internalEventBus.addEventHandler(this.integrityService, ExternalServices.SyncEvent.SyncRequestsIntegrityCheck)
this.internalEventBus.addEventHandler(this.syncService, ExternalServices.IntegrityEvent.IntegrityCheckCompleted)
this.internalEventBus.addEventHandler(this.userService, AccountEvent.SignedInOrRegistered)
this.internalEventBus.addEventHandler(this.sessionManager, ApiServiceEvent.SessionRefreshed)
}
private clearInternalEventBus(): void {