mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
decrease typing timeout to 1s
This commit is contained in:
parent
c7b47bb8d6
commit
e944dc5cac
@ -162,7 +162,7 @@ export class LoginViewModel extends ViewModel {
|
|||||||
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
|
this._abortQueryOperation = this.disposeTracked(this._abortQueryOperation);
|
||||||
this.emitChange("isFetchingLoginOptions");
|
this.emitChange("isFetchingLoginOptions");
|
||||||
this.disposeTracked(this._abortHomeserverQueryTimeout);
|
this.disposeTracked(this._abortHomeserverQueryTimeout);
|
||||||
const timeout = this.clock.createTimeout(2000);
|
const timeout = this.clock.createTimeout(1000);
|
||||||
this._abortHomeserverQueryTimeout = this.track(() => timeout.abort());
|
this._abortHomeserverQueryTimeout = this.track(() => timeout.abort());
|
||||||
try {
|
try {
|
||||||
await timeout.elapsed();
|
await timeout.elapsed();
|
||||||
|
Loading…
Reference in New Issue
Block a user