mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-03 04:47:58 +00:00
Fix video message forward reply info paint.
This commit is contained in:
parent
1c6fac337e
commit
eba606e85e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user