summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-02 12:38:13 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-02 12:38:13 +0300
commit83e3c701bb3f4b95cd073e2957e9175deae81723 (patch)
tree7c89d995429e52583ea51df02813659a0101fa9b /protocols/Telegram/src
parent91cea8d160d44ac4574c981dfe0fc9cf195d7c6a (diff)
fixes #4246 (Telegram: don't show @ before nicks in group chats)
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r--protocols/Telegram/src/groupchat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/groupchat.cpp b/protocols/Telegram/src/groupchat.cpp
index 1052fd0aa0..e72cac7af2 100644
--- a/protocols/Telegram/src/groupchat.cpp
+++ b/protocols/Telegram/src/groupchat.cpp
@@ -152,6 +152,9 @@ void CTelegramProto::GcAddMembers(TG_USER *pChat, const TD::array<TD::object_ptr
break;
}
+ if (*gce.pszNick.w == '@')
+ gce.pszNick.w++;
+
Chat_Event(&gce);
}