summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-14 15:51:03 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-14 15:51:03 +0300
commit1c5f9fca3e84bcddff36a70fbce0c48d9eb78be3 (patch)
tree5936ee6407685e681390d9cf3ff87d54a4f2a017 /protocols/Telegram/src/proto.cpp
parent3f32abbb269e21e4687affc8560fb6a080ae8ba1 (diff)
fixes #3771 (Telegram: добавление ботов)
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 9878ab5369..801c8eca7a 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -143,9 +143,7 @@ void CTelegramProto::OnModulesLoaded()
auto *pUser = new TG_USER(id, cc, isGroupChat);
pUser->szAvatarHash = getMStringA(cc, DBKEY_AVATAR_HASH);
m_arUsers.insert(pUser);
- if (!isGroupChat)
- m_arChats.insert(pUser);
- else if (iCompatLevel < 3)
+ if (isGroupChat && iCompatLevel < 3)
_wremove(CMStringW(FORMAT, L"%s\\%d.json", cachePath.get(), cc));
}
}