fix(client): do not catch up after first update is received

This commit is contained in:
teidesu 2021-05-04 13:11:41 +03:00
parent 2226428164
commit 97cbf10d3d

View file

@ -132,8 +132,14 @@ export async function start(
// user is already authorized // user is already authorized
if (!this._disableUpdates && params.catchUp) if (!this._disableUpdates) {
await this.catchUp() if (params.catchUp) {
await this.catchUp()
} else {
// otherwise we will catch up as soon as we receive a new update
await this._fetchUpdatesState()
}
}
return me return me
} catch (e) { } catch (e) {