From ef685aa0da3d80f43301d99dcec6402c2f015078 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 7 Nov 2023 09:14:32 +0400 Subject: [PATCH] Fix via @bot badge in unwrapped media. Fixes #27048. --- .../history/view/media/history_view_media_unwrapped.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp index e61202239..b0df17d48 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_media_unwrapped.cpp @@ -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);