diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-06 11:55:02 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-06 11:55:02 +0300 |
commit | c3bb3ccbcb43945028586e960773a0f43dbb7a18 (patch) | |
tree | 4ce8cf5639f5d8616d39312204c2e1e67942583a /protocols | |
parent | ce9fc1e0db0b48a08facf1dc2eded2dd572065e9 (diff) |
code cleaning
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/src/groupchat.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/Telegram/src/groupchat.cpp b/protocols/Telegram/src/groupchat.cpp index e72cac7af2..e1b430de34 100644 --- a/protocols/Telegram/src/groupchat.cpp +++ b/protocols/Telegram/src/groupchat.cpp @@ -407,12 +407,8 @@ void CTelegramProto::ProcessBasicGroupInfo(TD::updateBasicGroupFullInfo *pObj) return; if (auto *pInfo = pObj->basic_group_full_info_.get()) { - if (!pInfo->description_.empty()) { - Utf2T wszTopic(pInfo->description_.c_str()); - GCEVENT gce = { pChat->m_si, GC_EVENT_TOPIC }; - gce.pszText.w = wszTopic; - Chat_Event(&gce); - } + if (!pInfo->description_.empty()) + GcChangeTopic(pChat, Utf2T(pInfo->description_.c_str())); g_chatApi.UM_RemoveAll(pChat->m_si); GcAddMembers(pChat, pInfo->members_, true); |