From f5399124050a57b83a20ac08e5e510565e2abbf4 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 15 Aug 2023 09:46:32 +0300 Subject: [PATCH] Fixed overriding all link handlers in messages with reply. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index e562ce6c63..b2b9fe2819 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1719,7 +1719,8 @@ void Message::clickHandlerPressedChanged( toggleTopicButtonRipple(pressed); } else if (_viewButton) { _viewButton->checkLink(handler, pressed); - } else if (const auto reply = displayedReply()) { + } else if (const auto reply = displayedReply(); + reply && (handler == reply->replyToLink())) { toggleReplyRipple(pressed); } }