mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-09-09 13:33:01 +02:00
Make counter-suggestions link originals.
This commit is contained in:
parent
9186b28b60
commit
b66c61573f
1 changed files with 4 additions and 1 deletions
|
@ -710,7 +710,10 @@ ClickHandlerPtr ServicePreMessage::textState(
|
||||||
const StateRequest &request,
|
const StateRequest &request,
|
||||||
QRect g) const {
|
QRect g) const {
|
||||||
if (media && media->hideServiceText()) {
|
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 top = g.top() - height - st::msgMargin.top();
|
||||||
const auto rect = QRect(0, top, width, height)
|
const auto rect = QRect(0, top, width, height)
|
||||||
|
|
Loading…
Add table
Reference in a new issue