diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index f975a839c0..5dadd24ea2 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -2321,11 +2321,10 @@ void Message::paintText( }); } - const auto realWidth = textRealWidth(); auto highlightRequest = context.computeHighlightCache(); text().draw(p, { .position = trect.topLeft(), - .availableWidth = realWidth ? realWidth : trect.width(), + .availableWidth = std::max(textRealWidth(), trect.width()), .palette = &stm->textPalette, .pre = stm->preCache.get(), .blockquote = context.quoteCache( @@ -3644,7 +3643,7 @@ bool Message::getStateText( if (base::in_range(point.y(), trect.y(), trect.y() + trect.height())) { *outResult = TextState(item, text().getState( point - trect.topLeft(), - trect.width(), + std::max(textRealWidth(), trect.width()), request.forText())); if (outResult->link && IsRippleLink(outResult->link)