forked from mystiq/hydrogen-web
more refactor fixes
This commit is contained in:
parent
22a88d06b4
commit
1a518cdd28
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue