Fix via @bot badge in unwrapped media.

Fixes #27048.
This commit is contained in:
John Preston 2023-11-07 09:14:32 +04:00
parent 3ac222db62
commit ef685aa0da

View file

@ -325,7 +325,7 @@ void UnwrappedMedia::drawSurrounding(
recty += skip;
} else if (via) {
p.setFont(st::msgDateFont);
p.drawTextLeft(rectx, recty + st::msgReplyPadding.top(), 2 * textx + textw, via->text);
p.drawTextLeft(textx, recty + st::msgReplyPadding.top(), 2 * textx + textw, via->text);
const auto skip = st::msgServiceNameFont->height
+ (reply ? st::msgReplyPadding.top() : 0);