From c9ca79ab471bcac14f0e4516c2f197af151ee015 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 19 Apr 2026 16:33:25 +0700 Subject: [PATCH] Don't remember incorrect value in textRealWidth. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index e34e9c179e..57f8e60f87 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -4217,6 +4217,8 @@ int Message::bubbleTextualWidth() const { } } _bubbleTextualWidthCache = right; + [[maybe_unused]] const auto ensureRightCache + = textHeightFor(bubbleTextWidth(right)); } } }