2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

When following a post link push reply-return.

Fixes #4856.
This commit is contained in:
John Preston
2018-07-09 21:13:48 +03:00
parent eb3eef4b80
commit b697824540
25 changed files with 136 additions and 74 deletions

View File

@@ -100,9 +100,9 @@ void activateBotCommand(
}
}
if (skipConfirmation) {
UrlClickHandler::doOpen(url);
UrlClickHandler::Open(url);
} else {
HiddenUrlClickHandler::doOpen(url);
HiddenUrlClickHandler::Open(url);
}
} break;
@@ -177,12 +177,16 @@ void showSettings() {
}
}
void activateClickHandler(ClickHandlerPtr handler, Qt::MouseButton button) {
crl::on_main(wnd(), [handler, button] {
handler->onClick(button);
void activateClickHandler(ClickHandlerPtr handler, ClickContext context) {
crl::on_main(wnd(), [=] {
handler->onClick(context);
});
}
void activateClickHandler(ClickHandlerPtr handler, Qt::MouseButton button) {
activateClickHandler(handler, ClickContext{ button });
}
} // namespace App
namespace Ui {