diff options
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 0f97275314..e014f76a87 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -599,8 +599,13 @@ void CTelegramProto::ProcessChat(TD::updateNewChat *pObj) m_arChats.insert(pUser);
if (!szTitle.empty()) {
- if (hContact != INVALID_CONTACT_ID)
- GcChangeTopic(pUser, szTitle);
+ if (hContact != INVALID_CONTACT_ID) {
+ if (pUser->isForum) {
+ pUser->wszNick = Utf2T(szTitle.c_str());
+ SendQuery(new TD::getForumTopics(pUser->chatId, "", 0, 0, 0, 100));
+ }
+ else GcChangeTopic(pUser, szTitle);
+ }
else if (pUser->wszNick.IsEmpty())
pUser->wszFirstName = Utf2T(szTitle.c_str());
}
|