From 48fb0f3b1e3921b7ddd5bd4b7bb0e30875c91583 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 9 Jan 2025 22:54:57 +0400 Subject: [PATCH] Version 5.10.3: Fix edit of album caption. --- Telegram/SourceFiles/history/view/history_view_message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index c1b85b8fa..6dc63deb0 100644 --- a/Telegram/SourceFiles/history/view/history_view_message.cpp +++ b/Telegram/SourceFiles/history/view/history_view_message.cpp @@ -2975,7 +2975,7 @@ bool Message::getStateText( } else if (const auto botTop = Get()) { trect.setY(trect.y() + botTop->height); } - const auto item = data(); + const auto item = this->textItem(); if (base::in_range(point.y(), trect.y(), trect.y() + trect.height())) { *outResult = TextState(item, text().getState( point - trect.topLeft(),