From 1dc03ad734fbb5ce1adb9b81b88c032ad00b83c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 26 Jun 2025 21:33:54 +0300 Subject: Telegram: minor fix --- protocols/Telegram/src/utils.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/Telegram/src/utils.cpp') 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); -- cgit v1.2.3