diff --git a/Telegram/SourceFiles/api/api_suggest_post.cpp b/Telegram/SourceFiles/api/api_suggest_post.cpp index c90789c193..7af4fbc84d 100644 --- a/Telegram/SourceFiles/api/api_suggest_post.cpp +++ b/Telegram/SourceFiles/api/api_suggest_post.cpp @@ -534,11 +534,16 @@ std::shared_ptr AcceptClickHandler( std::shared_ptr DeclineClickHandler( not_null item) { + const auto session = &item->history()->session(); const auto id = item->fullId(); return std::make_shared([=](ClickContext context) { const auto my = context.other.value(); 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); diff --git a/Telegram/SourceFiles/history/view/media/history_view_suggest_decision.cpp b/Telegram/SourceFiles/history/view/media/history_view_suggest_decision.cpp index 5b5af433fd..3b7f24b0f8 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_suggest_decision.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_suggest_decision.cpp @@ -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, diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 7b17fcc77c..f70a8959fd 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -431,7 +431,7 @@ void MainWindow::createGlobalMenu() { u"Telegram"_q), [=] { ensureWindowShown(); - controller().show(Box()); + controller().show(Box(AboutBox)); }); about->setMenuRole(QAction::AboutQtRole);