diff --git a/Telegram/SourceFiles/info/info_top_bar_override.cpp b/Telegram/SourceFiles/info/info_top_bar_override.cpp index 139b748722..ede890018d 100644 --- a/Telegram/SourceFiles/info/info_top_bar_override.cpp +++ b/Telegram/SourceFiles/info/info_top_bar_override.cpp @@ -157,8 +157,12 @@ void TopBarOverride::performForward() { _correctionCancelRequests.fire({}); return; } - auto callback = [items = std::move(items)](not_null peer) { + auto callback = [items = std::move(items), that = weak(this)]( + not_null peer) { App::main()->setForwardDraft(peer->id, items); + if (that) { + that->_correctionCancelRequests.fire({}); + } }; Ui::show(Box( std::make_unique(std::move(callback)),