decrease typing timeout to 1s

This commit is contained in:
Bruno Windels 2021-08-23 19:27:24 +02:00
parent c7b47bb8d6
commit e944dc5cac

View file

@ -162,7 +162,7 @@ export class LoginViewModel extends ViewModel {
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
this.emitChange("isFetchingLoginOptions");
this.disposeTracked(this._abortHomeserverQueryTimeout);
const timeout = this.clock.createTimeout(2000);
const timeout = this.clock.createTimeout(1000);
this._abortHomeserverQueryTimeout = this.track(() => timeout.abort());
try {
await timeout.elapsed();