From 29faea6ac97621f8402a7ebe36616327f6194243 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sat, 20 Aug 2022 13:40:13 +0200 Subject: [PATCH] Reset pinned orders --- src/lib/appManagers/utils/state/loadState.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/appManagers/utils/state/loadState.ts b/src/lib/appManagers/utils/state/loadState.ts index bf389e70..564c0561 100644 --- a/src/lib/appManagers/utils/state/loadState.ts +++ b/src/lib/appManagers/utils/state/loadState.ts @@ -298,9 +298,10 @@ 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 || state.build < 179) { + if(/* compareVersion(state.version, '0.8.7') === -1 || state.build < 179 || */state.build < 217) { state.allDialogsLoaded = copy(STATE_INIT.allDialogsLoaded); - // state.filters = copy(STATE_INIT.filters); + state.pinnedOrders = copy(STATE_INIT.pinnedOrders); + state.filtersArr = copy(STATE_INIT.filtersArr); resetStorages.add('dialogs'); }