mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
show "setting up encryption keys..." step during login
This commit is contained in:
parent
36a8ec0110
commit
4c1aaaf416
@ -127,6 +127,8 @@ export class SessionLoadViewModel extends ViewModel {
|
|||||||
return `Something went wrong while checking your login and password.`;
|
return `Something went wrong while checking your login and password.`;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case LoadStatus.SessionSetup:
|
||||||
|
return `Setting up your encryption keys…`;
|
||||||
case LoadStatus.Loading:
|
case LoadStatus.Loading:
|
||||||
return `Loading your conversations…`;
|
return `Loading your conversations…`;
|
||||||
case LoadStatus.FirstSync:
|
case LoadStatus.FirstSync:
|
||||||
|
@ -28,6 +28,7 @@ export const LoadStatus = createEnum(
|
|||||||
"Login",
|
"Login",
|
||||||
"LoginFailed",
|
"LoginFailed",
|
||||||
"Loading",
|
"Loading",
|
||||||
|
"SessionSetup", // upload e2ee keys, ...
|
||||||
"Migrating", //not used atm, but would fit here
|
"Migrating", //not used atm, but would fit here
|
||||||
"FirstSync",
|
"FirstSync",
|
||||||
"Error",
|
"Error",
|
||||||
@ -154,6 +155,7 @@ export class SessionContainer {
|
|||||||
this._session = new Session({storage: this._storage,
|
this._session = new Session({storage: this._storage,
|
||||||
sessionInfo: filteredSessionInfo, hsApi, olm, clock: this._clock});
|
sessionInfo: filteredSessionInfo, hsApi, olm, clock: this._clock});
|
||||||
await this._session.load();
|
await this._session.load();
|
||||||
|
this._status.set(LoadStatus.SessionSetup);
|
||||||
await this._session.beforeFirstSync(isNewLogin);
|
await this._session.beforeFirstSync(isNewLogin);
|
||||||
|
|
||||||
this._sync = new Sync({hsApi, storage: this._storage, session: this._session});
|
this._sync = new Sync({hsApi, storage: this._storage, session: this._session});
|
||||||
|
Loading…
Reference in New Issue
Block a user