mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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,
|
const SectionShow ¶ms,
|
||||||
MsgId showAtMsgId) {
|
MsgId showAtMsgId) {
|
||||||
if (!peerId) {
|
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);
|
const auto peer = session().data().peer(peerId);
|
||||||
if (const auto separateChat = _controller->windowId().chat()) {
|
if (const auto separateChat = _controller->windowId().chat()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue