Fixed text state of reply bubble for messages with unwrapped media.

This commit is contained in:
23rd 2024-05-14 01:28:46 +03:00
parent 3e7d4af4a0
commit 2afb69e787

View file

@ -441,7 +441,7 @@ TextState UnwrappedMedia::textState(QPoint point, StateRequest request) const {
}
if (recth) {
int rectx = _additionalOnTop
? (rightAligned ? (inner.width() + st::msgReplyPadding.left() - rectw) : 0)
? (rightAligned ? (inner.x() + inner.width() - rectw) : 0)
: (rightAligned ? 0 : (inner.width() + st::msgReplyPadding.left()));
int recty = surrounding.height - recth;
if (rtl()) rectx = width() - rectx - rectw;