mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix crash in unlock with chat in separate window.
Fixes #28306, fixes #28319.
This commit is contained in:
parent
a98f559066
commit
3f4157bab2
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue