Fix video message forward reply info paint.

This commit is contained in:
John Preston 2022-06-15 15:03:08 +04:00
parent 1c6fac337e
commit eba606e85e

View File

@ -652,6 +652,11 @@ void Gif::draw(Painter &p, const PaintContext &context) const {
auto breakEverywhere = (forwardedHeightReal > forwardedHeight);
forwarded->text.drawElided(p, rectx, recty + st::msgReplyPadding.top(), rectw, kMaxGifForwardedBarLines, style::al_left, 0, -1, 0, breakEverywhere);
p.restoreTextPalette();
const auto skip = std::min(
forwarded->text.countHeight(rectw),
kMaxGifForwardedBarLines * st::msgServiceNameFont->height);
recty += skip;
} else if (via) {
p.setFont(st::msgServiceNameFont);
p.drawTextLeft(rectx, recty + st::msgReplyPadding.top(), 2 * rectx + rectw, via->text);