More simpler navigation

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-23 15:55:07 +05:30
parent e80667c935
commit b0db7e0344

View file

@ -54,8 +54,7 @@ export class LoginViewModel extends ViewModel {
get isFetchingLoginOptions() { return this._isFetchingLoginOptions; } get isFetchingLoginOptions() { return this._isFetchingLoginOptions; }
goBack() { goBack() {
const path = this.navigation.pathFrom([this.navigation.segment("session")]); this.navigation.push("session");
this.navigation.applyPath(path);
} }
async _createViewModels(homeserver) { async _createViewModels(homeserver) {