diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-29 14:08:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-29 14:08:38 +0300 |
commit | 0868340cf0cdb100caf7f124069d98548ec00bd2 (patch) | |
tree | b0eceb51dae1b36e506e78a369a16031d8681e1c | |
parent | 0770a12fb1d36674053771f2c559c508725090af (diff) |
fixes #3461 (Telegram: empty nicks in channels)
-rw-r--r-- | protocols/Telegram/src/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 1afc03c6a6..07c1dba093 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -565,7 +565,7 @@ void CTelegramProto::ProcessMessage(TD::updateNewMessage *pObj) if (auto *pSender = GetSender(pMessage->sender_id_.get())) {
_i64toa(pSender->id, szUserId, 10);
pre.szUserId = szUserId;
- if (pUser->m_si)
+ if (pUser->m_si && !pSender->wszFirstName.IsEmpty())
g_chatApi.UM_AddUser(pUser->m_si, Utf2T(szUserId), pSender->getDisplayName(), ID_STATUS_ONLINE);
}
}
|