Reset dialogs

This commit is contained in:
Eduard Kuzmenko 2022-06-24 21:34:15 +04:00
parent 9e5a0eb2d5
commit f23d953c5a
2 changed files with 3 additions and 3 deletions

4
.env
View File

@ -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

View File

@ -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);