summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Telegram/src/utils.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index 784458e6e5..e468d58c68 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -290,8 +290,10 @@ TG_USER* CTelegramProto::AddUser(int64_t id, bool bIsChat)
else {
pUser->hContact = hContact;
setWString(hContact, "Nick", pUser->wszNick);
- setWString(hContact, "FirstName", pUser->wszFirstName);
- setWString(hContact, "LastName", pUser->wszLastName);
+ if (!pUser->isGroupChat) {
+ setWString(hContact, "FirstName", pUser->wszFirstName);
+ setWString(hContact, "LastName", pUser->wszLastName);
+ }
}
return pUser;