summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-01 17:59:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-01 17:59:40 +0300
commitde0e751a3d2b36448b61cc6bb96f5aa207ebd94f (patch)
tree66903439ff2c0da3721a6288f2b93137089c7708 /protocols/Telegram
parent55cae2b76c0f4bebd69ca50113fbda8b7fd4b641 (diff)
Telegram: let's create a group before usage
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 1c30f98fb9..e039628284 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -318,6 +318,7 @@ void CTelegramProto::ProcessChatPosition(TD::updateChatPosition *pObj)
|| (!pUser->isGroupChat && !mir_wstrcmp(pwszExistingGroup, m_wszDefaultGroup))
|| (pUser->isGroupChat && !mir_wstrcmp(pwszExistingGroup, ptrW(Chat_GetGroup())))) {
CMStringW wszNewGroup(FORMAT, L"%s\\%s", (wchar_t *)m_wszDefaultGroup, wszGroup.c_str());
+ Clist_GroupCreate(0, wszNewGroup);
Clist_SetGroup(pUser->hContact, wszNewGroup);
}
}