Show reaction button only when the cursor is over the message.

This commit is contained in:
John Preston 2021-12-30 13:37:39 +03:00
parent f70c2adbdd
commit 505ef04134
1 changed files with 1 additions and 1 deletions

View File

@ -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 {};
}
}