summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-02-29 13:42:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-02-29 13:42:58 +0300
commitd9d6a68bd1150586e22c0f6f507e45477650a0db (patch)
tree8dd9b2769df7618da5757eb47a295cd9e430c163 /protocols/Telegram/src/server.cpp
parentba3441e05e53a8f5a4156d72930fe16149d0f628 (diff)
more logs
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 00ee4b01d4..1b753ffc22 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -630,8 +630,10 @@ void CTelegramProto::ProcessChatPosition(TD::updateChatPosition *pObj)
if (!pwszExistingGroup
|| (!pUser->isGroupChat && !mir_wstrcmp(pwszExistingGroup, m_wszDefaultGroup))
- || (pUser->isGroupChat && !mir_wstrcmp(pwszExistingGroup, ptrW(Chat_GetGroup())))) {
+ || (pUser->isGroupChat && !mir_wstrcmp(pwszExistingGroup, ptrW(Chat_GetGroup()))))
+ {
CMStringW wszNewGroup(FORMAT, L"%s\\%s", (wchar_t *)m_wszDefaultGroup, wszGroup.c_str());
+ debugLogW(L"Setting group for %d to %s", pUser->hContact, wszNewGroup.c_str());
Clist_GroupCreate(0, wszNewGroup);
Clist_SetGroup(pUser->hContact, wszNewGroup);
}