more refactor fixes

This commit is contained in:
Bruno Windels 2020-10-26 16:31:30 +01:00
parent 22a88d06b4
commit 1a518cdd28
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {