summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp2
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);
}
}