diff --git a/src/domain/RootViewModel.js b/src/domain/RootViewModel.js index 63f5c10a..cb22bee2 100644 --- a/src/domain/RootViewModel.js +++ b/src/domain/RootViewModel.js @@ -70,7 +70,7 @@ export class RootViewModel extends ViewModel { if (restoreUrlIfAtDefault) { this.urlCreator.pushUrl(restoreUrlIfAtDefault); } else { - const sessionInfos = await this._sessionInfoStorage.getAll(); + const sessionInfos = await this.platform.sessionInfoStorage.getAll(); if (sessionInfos.length === 0) { this.navigation.push("login"); } else if (sessionInfos.length === 1) { diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index 5db92d44..814e2473 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -105,7 +105,7 @@ export class SessionContainer { accessToken: loginData.access_token, lastUsed: clock.now() }; - await this._sessionInfoStorage.add(sessionInfo); + await this._platform.sessionInfoStorage.add(sessionInfo); } catch (err) { this._error = err; if (err instanceof HomeServerError) {