diff --git a/Telegram/SourceFiles/history/view/history_view_message.cpp b/Telegram/SourceFiles/history/view/history_view_message.cpp index c1b85b8fa3796..6dc63deb02a70 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(),