summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-29 14:42:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-29 14:42:03 +0300
commit70979f2767293d44654ee69085b0eacd1c464522 (patch)
treefa13d8c10ce683910f54dfab93c6ba735cab28a2
parented9ebbcc1c9dd8dd7583ac5f5b4260a41ae84079 (diff)
let's wipe ChatCache again because of #3461
-rw-r--r--protocols/Telegram/src/proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index df74510a59..cd88af4b70 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -139,11 +139,11 @@ void CTelegramProto::OnModulesLoaded()
m_arUsers.insert(pUser);
if (!isGroupChat)
m_arChats.insert(pUser);
- else if (iCompatLevel == 0)
+ else if (iCompatLevel < 2)
_wremove(CMStringW(FORMAT, L"%s\\%d.json", cachePath.get(), cc));
}
}
- setByte(DBKEY_COMPAT, 1);
+ setByte(DBKEY_COMPAT, 2);
m_bSmileyAdd = ServiceExists(MS_SMILEYADD_LOADCONTACTSMILEYS);
if (m_bSmileyAdd) {