summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/mt_proto.cpp
diff options
context:
space:
mode:
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;