From 193187cd5eb7eead943d7fa824e8cded7ceadda4 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Tue, 26 Jul 2022 07:47:28 +0200 Subject: [PATCH] F --- .env | 4 ++-- src/lib/appManagers/appImManager.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env b/.env index e3ed0284..d615f234 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.5.0 -VERSION_FULL=1.5.0 (210) -BUILD=210 +VERSION_FULL=1.5.0 (211) +BUILD=211 diff --git a/src/lib/appManagers/appImManager.ts b/src/lib/appManagers/appImManager.ts index 1fb8aa18..7cc46fd6 100644 --- a/src/lib/appManagers/appImManager.ts +++ b/src/lib/appManagers/appImManager.ts @@ -1523,9 +1523,10 @@ export class AppImManager extends EventListenerBase<{ document.body.classList.toggle(LEFT_COLUMN_ACTIVE_CLASSNAME, id === 0); - this.overrideHash(id > 0 ? this.chat?.peerId : undefined); - const prevTabId = this.tabId; + if(prevTabId !== -1) { + this.overrideHash(id > 0 ? this.chat?.peerId : undefined); + } this.log('selectTab', id, prevTabId);