From f23d953c5a24f25a92627ce6ecdc7783f564e0f5 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Fri, 24 Jun 2022 21:34:15 +0400 Subject: [PATCH] Reset dialogs --- .env | 4 ++-- src/lib/appManagers/utils/state/loadState.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 4d23e28c..125f6654 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.5.0 -VERSION_FULL=1.5.0 (178) -BUILD=178 +VERSION_FULL=1.5.0 (179) +BUILD=179 diff --git a/src/lib/appManagers/utils/state/loadState.ts b/src/lib/appManagers/utils/state/loadState.ts index 8e677b02..4a8192e3 100644 --- a/src/lib/appManagers/utils/state/loadState.ts +++ b/src/lib/appManagers/utils/state/loadState.ts @@ -298,7 +298,7 @@ async function loadStateInner() { let newVersion: string, oldVersion: string; if(state.version !== STATE_VERSION || state.build !== BUILD/* || true */) { // reset filters and dialogs if version is older - if(compareVersion(state.version, '0.8.7') === -1) { + if(compareVersion(state.version, '0.8.7') === -1 || state.build < 179) { state.allDialogsLoaded = copy(STATE_INIT.allDialogsLoaded); state.filters = copy(STATE_INIT.filters);