From b4a49de819043bb27321d87ccba4573ce6ab7b37 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 10 Feb 2022 18:31:28 +0300 Subject: [PATCH] Fix possible incorrect links in service messages. --- Telegram/SourceFiles/history/history_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_service.cpp b/Telegram/SourceFiles/history/history_service.cpp index 1a9c1f38d..e01370657 100644 --- a/Telegram/SourceFiles/history/history_service.cpp +++ b/Telegram/SourceFiles/history/history_service.cpp @@ -143,7 +143,7 @@ void HistoryService::setMessageByAction(const MTPmessageAction &action) { auto user = history()->owner().user(users[i].v); result.links.push_back(user->createOpenLink()); - auto linkText = Ui::Text::Link(user->name, QString()); + auto linkText = Ui::Text::Link(user->name, 2 + i); if (i == 0) { result.text = linkText; } else if (i + 1 == l) {