From 881ecd6207417a1933dec0b9d6d71230be117cac Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Tue, 5 Apr 2022 22:18:49 +0300 Subject: [PATCH] Follow-up --- .env | 4 ++-- src/lib/mtproto/networker.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 22f6539f..07a234d2 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.4.1 -VERSION_FULL=1.4.1 (151) -BUILD=151 +VERSION_FULL=1.4.1 (152) +BUILD=152 diff --git a/src/lib/mtproto/networker.ts b/src/lib/mtproto/networker.ts index ff59da36..0b28dae7 100644 --- a/src/lib/mtproto/networker.ts +++ b/src/lib/mtproto/networker.ts @@ -1720,10 +1720,10 @@ export default class MTPNetworker { case 33: // * msg_seqno too high case 64: { // * invalid container if(changedTimeOffset === undefined) { - this.applyServerTime(messageId); + changedTimeOffset = this.applyServerTime(messageId); } - if(message.error_code === 17) { + if(message.error_code === 17 || changedTimeOffset) { this.log('Update session'); this.updateSession(); }