mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in unlock with chat in separate window.
Fixes #28306, fixes #28319.
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user