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(); }