Version 5.16: Fix build with GCC.

This commit is contained in:
John Preston 2025-07-01 23:31:11 +04:00
parent 4584d912cc
commit 869854fbc2
3 changed files with 7 additions and 3 deletions

View file

@ -534,11 +534,16 @@ std::shared_ptr<ClickHandler> AcceptClickHandler(
std::shared_ptr<ClickHandler> DeclineClickHandler(
not_null<HistoryItem*> item) {
const auto session = &item->history()->session();
const auto id = item->fullId();
return std::make_shared<LambdaClickHandler>([=](ClickContext context) {
const auto my = context.other.value<ClickHandlerContext>();
const auto controller = my.sessionWindow.get();
if (!controller) {
if (!controller || &controller->session() != session) {
return;
}
const auto item = session->data().message(id);
if (!item) {
return;
}
RequestDeclineComment(controller->uiShow(), item);

View file

@ -288,7 +288,6 @@ auto GenerateSuggestRequestMedia(
: nullptr;
const auto changes = ResolveChanges(item, original);
const auto from = item->from();
const auto peer = item->history()->peer;
auto pushText = [&](
TextWithEntities text,

View file

@ -431,7 +431,7 @@ void MainWindow::createGlobalMenu() {
u"Telegram"_q),
[=] {
ensureWindowShown();
controller().show(Box<AboutBox>());
controller().show(Box(AboutBox));
});
about->setMenuRole(QAction::AboutQtRole);