2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fixed links position of inline keyboard when reactions aren't in bubble.

This commit is contained in:
23rd
2022-02-16 11:03:39 +03:00
committed by John Preston
parent 4f6776eeaa
commit 9bc48f4aba

View File

@@ -1588,7 +1588,12 @@ TextState Message::textState(
}
if (keyboard && item->isHistoryEntry()) {
auto keyboardTop = g.top() + g.height() + st::msgBotKbButton.margin;
const auto keyboardTop = g.top()
+ g.height()
+ st::msgBotKbButton.margin
+ ((_reactions && !reactionsInBubble)
? (st::mediaInBubbleSkip + _reactions->height())
: 0);
if (QRect(g.left(), keyboardTop, g.width(), keyboardHeight).contains(point)) {
result.link = keyboard->getLink(point - QPoint(g.left(), keyboardTop));
return result;