summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-30 18:49:22 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-30 18:49:22 +0300
commit7f7c83bebbf14aebc659a4759ef278a793e81422 (patch)
tree5594615ec5a698fae52c73176a7b5b5bc0295719 /protocols
parent22f9f9460967114c70a6c3a516ea8b24c7d42bd7 (diff)
Telegram: no need to save this shit (for group chats here's the member count)
Diffstat (limited to 'protocols')
-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;