From 505ef041342f1b53e9526f37888d1fd89b59841f Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 30 Dec 2021 13:37:39 +0300 Subject: [PATCH] Show reaction button only when the cursor is over the message. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index f6875cd8f..68254ed4d 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -1869,7 +1869,7 @@ Reactions::ButtonParameters Message::reactionButtonParameters( + st::reactionCornerCenter)); if (reactionState.itemId != result.context) { const auto top = marginTop(); - if (!QRect(0, top, width(), height() - top).contains(position)) { + if (!contentRect.contains(position)) { return {}; } }