diff options
author | George Hazan <george.hazan@gmail.com> | 2025-06-26 21:33:54 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-06-26 21:33:54 +0300 |
commit | 1dc03ad734fbb5ce1adb9b81b88c032ad00b83c3 (patch) | |
tree | 0eae46e2c7939824aee3333756330791ec5aea8b | |
parent | ef38bb661a3de439ea02d42360a972b0d8062c85 (diff) |
Telegram: minor fix
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 2 |
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);
|