mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Make navigation simpler
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
c9319c7c38
commit
ef4db4abab
@ -53,8 +53,7 @@ export class CompleteSSOLoginViewModel extends ViewModel {
|
||||
return;
|
||||
}
|
||||
if (!loginOptions.token) {
|
||||
const path = this.navigation.pathFrom([this.navigation.segment("session")]);
|
||||
this.navigation.applyPath(path);
|
||||
this.navigation.push("session");
|
||||
return;
|
||||
}
|
||||
const status = await this._attemptLogin(loginOptions.token(this._loginToken));
|
||||
|
Loading…
Reference in New Issue
Block a user