From 2e0c441fc45fe6c5c9d23f7affaeab6db006d239 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 May 2025 11:44:39 +0300 Subject: =?UTF-8?q?fixes=20#5032=20(NS:=20=D0=BF=D1=80=D0=B8=20=D1=84?= =?UTF-8?q?=D0=BE=D1=80=D0=B2=D0=B0=D1=80=D0=B4=D0=B5=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D1=82=D1=8C=20=D0=BD=D0=B8=D0=BA=20=D0=B8=D1=81?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=B0=D0=BD?= =?UTF-8?q?=D0=B0=D0=BB=D0=B0=20=D0=BA=D0=BB=D0=B8=D0=BA=D0=B0=D0=B1=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=BC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/utils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'protocols/Telegram/src/utils.cpp') diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 6a2c043fb6..94592127e0 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -653,8 +653,10 @@ CMStringA CTelegramProto::GetMessageText(TG_USER *pUser, const TD::message *pMsg wszNick = Utf2T(p->sender_name_.c_str()); break; case TD::messageOriginChannel::ID: - if (auto *p = FindChat(((TD::messageOriginChannel *)pForward->origin_.get())->chat_id_)) - wszNick = p->getDisplayName(); + if (auto *p = FindChat(((TD::messageOriginChannel *)pForward->origin_.get())->chat_id_)) { + auto str = p->getDisplayName(); + wszNick.Format(L"[url=https://t.me/%s]%s[/url]", str.c_str(), str.c_str()); + } break; default: wszNick = TranslateT("Unknown"); -- cgit v1.2.3