Browse Source

Reset dialogs

master
Eduard Kuzmenko 2 years ago
parent
commit
f23d953c5a
  1. 4
      .env
  2. 2
      src/lib/appManagers/utils/state/loadState.ts

4
.env

@ -1,5 +1,5 @@
API_ID=1025907 API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750 API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.5.0 VERSION=1.5.0
VERSION_FULL=1.5.0 (178) VERSION_FULL=1.5.0 (179)
BUILD=178 BUILD=179

2
src/lib/appManagers/utils/state/loadState.ts

@ -298,7 +298,7 @@ async function loadStateInner() {
let newVersion: string, oldVersion: string; let newVersion: string, oldVersion: string;
if(state.version !== STATE_VERSION || state.build !== BUILD/* || true */) { if(state.version !== STATE_VERSION || state.build !== BUILD/* || true */) {
// reset filters and dialogs if version is older // 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.allDialogsLoaded = copy(STATE_INIT.allDialogsLoaded);
state.filters = copy(STATE_INIT.filters); state.filters = copy(STATE_INIT.filters);

Loading…
Cancel
Save