diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index c87515042..b4b088e6f 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1242,7 +1242,8 @@ bool MainWidget::showHistoryInDifferentWindow( const SectionShow ¶ms, MsgId showAtMsgId) { if (!peerId) { - return false; + // In case we don't have dialogs, we can't clear section stack. + return !_dialogs; } const auto peer = session().data().peer(peerId); if (const auto separateChat = _controller->windowId().chat()) {