summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-06-26 21:33:54 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-06-26 21:33:54 +0300
commit1dc03ad734fbb5ce1adb9b81b88c032ad00b83c3 (patch)
tree0eae46e2c7939824aee3333756330791ec5aea8b
parentef38bb661a3de439ea02d42360a972b0d8062c85 (diff)
Telegram: minor fix
-rw-r--r--protocols/Telegram/src/utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index ed9b37473d..7589abd500 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -445,6 +445,8 @@ TG_USER* CTelegramProto::AddUser(int64_t id, bool bIsChat)
}
else {
pUser->hContact = hContact;
+ if (pUser->wszNick[0] == '@')
+ pUser->wszNick.Delete(0, 1);
setWString(hContact, "Nick", pUser->wszNick);
if (!pUser->isGroupChat) {
setWString(hContact, "FirstName", pUser->wszFirstName);