From 1f0ed3bb315eea05d97107cb8b65c76a520a13e6 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 14 Mar 2024 20:36:19 +0300 Subject: [PATCH] Fixed links in service message about requested peers from bot. --- Telegram/SourceFiles/history/history_item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index d990c56ef..43bebb226 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -4628,7 +4628,7 @@ void HistoryItem::setServiceMessageByAction(const MTPmessageAction &action) { auto prepareRequestedPeer = [&]( const MTPDmessageActionRequestedPeer &action) { auto result = PreparedServiceText{}; - result.links.push_back(fromLink()); + result.links.push_back(history()->peer->createOpenLink()); const auto &list = action.vpeers().v; for (auto i = 0, count = int(list.size()); i != count; ++i) { @@ -4664,7 +4664,7 @@ void HistoryItem::setServiceMessageByAction(const MTPmessageAction &action) { lt_chat, result.text, lt_bot, - Ui::Text::Link(history()->peer->name(), 2), + Ui::Text::Link(history()->peer->name(), 1), Ui::Text::WithEntities); return result; };