From 3ca8f847e630ac13058859faa4d48d1243ea3825 Mon Sep 17 00:00:00 2001 From: teidesu Date: Sat, 24 Apr 2021 20:02:40 +0300 Subject: [PATCH] fix(client): do not catch up id disableUpdates is used --- packages/client/src/methods/auth/start.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/methods/auth/start.ts b/packages/client/src/methods/auth/start.ts index 8ec4f5a3..e22f0cb0 100644 --- a/packages/client/src/methods/auth/start.ts +++ b/packages/client/src/methods/auth/start.ts @@ -127,7 +127,8 @@ export async function start( try { const me = await this.getMe() // user is already authorized - if (params.catchUp !== false) await this.catchUp() + if (params.catchUp !== false && !this._disableUpdates) + await this.catchUp() return me } catch (e) { if (!(e instanceof AuthKeyUnregisteredError)) throw e