Make counter-suggestions link originals.

This commit is contained in:
John Preston 2025-06-27 21:09:02 +04:00
parent 9186b28b60
commit b66c61573f

View file

@ -710,7 +710,10 @@ ClickHandlerPtr ServicePreMessage::textState(
const StateRequest &request,
QRect g) const {
if (media && media->hideServiceText()) {
return {};
const auto left = (width - media->width()) / 2;
const auto top = g.top() - height - st::msgMargin.bottom();
const auto position = QPoint(left, top);
return media->textState(point - position, request).link;
}
const auto top = g.top() - height - st::msgMargin.top();
const auto rect = QRect(0, top, width, height)