Remove unwanted check

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-19 20:41:24 +05:30
parent 2d842c7174
commit ed278e3e5a

View file

@ -42,11 +42,6 @@ export class PasswordLoginViewModel extends ViewModel {
async login(username, password) { async login(username, password) {
const homeserver = this._homeserver; const homeserver = this._homeserver;
if (!this._loginOptions.password) {
const path = this.navigation.pathFrom([this.navigation.segment("session")]);
this.navigation.applyPath(path);
return;
}
this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription); this._loadViewModelSubscription = this.disposeTracked(this._loadViewModelSubscription);
if (this._loadViewModel) { if (this._loadViewModel) {
this._loadViewModel = this.disposeTracked(this._loadViewModel); this._loadViewModel = this.disposeTracked(this._loadViewModel);