diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-24 14:02:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-24 14:02:05 +0300 |
commit | a57bbea45f91d66defa6e9a4ca185c6c7656d8c0 (patch) | |
tree | 64e6c11778ceff494cb846785bbe3b23840268bb /protocols/Telegram/src/proto.h | |
parent | 0e4a45eff4dd8ab29f8dd79e419d33a89a808939 (diff) |
Telegram: fix for basic groups promoted to super groups
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r-- | protocols/Telegram/src/proto.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h index af6c3d9851..1234bb3ed3 100644 --- a/protocols/Telegram/src/proto.h +++ b/protocols/Telegram/src/proto.h @@ -76,7 +76,7 @@ struct TG_FILE_REQUEST : public MZeroedObject PROTOFILETRANSFERSTATUS pfts; }; -struct TG_USER +struct TG_USER : public MZeroedObject { TG_USER(int64_t _1, MCONTACT _2, bool _3 = false) : id(_1), @@ -88,7 +88,7 @@ struct TG_USER int64_t id, chatId; MCONTACT hContact; - bool isGroupChat; + bool isGroupChat, bLoadMembers; CMStringA szAvatarHash; CMStringW wszNick, wszFirstName, wszLastName; time_t m_timer1 = 0, m_timer2 = 0; @@ -233,7 +233,7 @@ class CTelegramProto : public PROTO<CTelegramProto> OBJLIST<TG_BASIC_GROUP> m_arBasicGroups; OBJLIST<TG_SUPER_GROUP> m_arSuperGroups; - void InitGroupChat(TG_USER *pUser, const TD::chat *pChat, bool bUpdateMembers); + void InitGroupChat(TG_USER *pUser, const TD::chat *pChat); void StartGroupChat(td::ClientManager::Response &response, void *pUserData); void Chat_SendPrivateMessage(GCHOOK *gch); |