diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-05 18:30:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-05 18:30:46 +0300 |
commit | 06a86a12c757b2b77e994772c3bd7e2583f7f7a9 (patch) | |
tree | 4360ed2fb39cd665a3f7ed533f660d623c1f16a3 /protocols/Telegram | |
parent | ff7f56df48d8e43e5037db68b411e453214792c8 (diff) |
fixes #4263 (Telegram: в чатах не показывается автор реплик, оставленных от имени канала)
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 0069b77cbb..a8817da7c7 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -367,6 +367,8 @@ bool CTelegramProto::GetGcUserId(TG_USER *pUser, const TD::message *pMsg, char * _i64toa(pSender->id, dest, 10);
if (pUser->m_si && !pSender->wszFirstName.IsEmpty())
g_chatApi.UM_AddUser(pUser->m_si, Utf2T(dest), pSender->getDisplayName(), ID_STATUS_ONLINE);
+ else
+ mir_strncpy(dest, T2Utf(pSender->getDisplayName()), 100);
return true;
}
}
|