fix(client): do not catch up after first update is received
This commit is contained in:
parent
2226428164
commit
97cbf10d3d
1 changed files with 8 additions and 2 deletions
|
@ -132,8 +132,14 @@ export async function start(
|
|||
|
||||
// user is already authorized
|
||||
|
||||
if (!this._disableUpdates && params.catchUp)
|
||||
if (!this._disableUpdates) {
|
||||
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
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue