summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/mt_proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-12-26 19:12:00 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-12-26 19:12:00 +0300
commit016f5b27df751bc8a605aeb9c97c844892458eeb (patch)
tree8d446c73e4d4585d11ae9a942f0c18d255d81eca /protocols/Telegram/src/mt_proto.cpp
parentdee83d7a89c021f63b746681d11ab72381bdc472 (diff)
fixes #3285 (Telegram: не создаётся группа) + перенос папок в подгруппы
Diffstat (limited to 'protocols/Telegram/src/mt_proto.cpp')
-rw-r--r--protocols/Telegram/src/mt_proto.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Telegram/src/mt_proto.cpp b/protocols/Telegram/src/mt_proto.cpp
index 998e84c733..eeed67745c 100644
--- a/protocols/Telegram/src/mt_proto.cpp
+++ b/protocols/Telegram/src/mt_proto.cpp
@@ -34,6 +34,11 @@ CMTProto::CMTProto(const char* protoName, const wchar_t* userName) :
HookProtoEvent(ME_OPT_INITIALISE, &CMTProto::OnOptionsInit);
+ // default contacts group
+ if (m_wszDefaultGroup == NULL)
+ m_wszDefaultGroup = mir_wstrdup(L"WhatsApp");
+ m_iBaseGroup = Clist_GroupCreate(0, m_wszDefaultGroup);
+
// Create standard network connection
NETLIBUSER nlu = {};
nlu.flags = NUF_UNICODE;