mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix a crash in saved stories layer management.
This commit is contained in:
parent
e98770d418
commit
738e20252e
1 changed files with 6 additions and 0 deletions
|
@ -244,6 +244,12 @@ Dialogs::RowDescriptor WrapWidget::activeChat() const {
|
||||||
return Dialogs::RowDescriptor(
|
return Dialogs::RowDescriptor(
|
||||||
peer->owner().history(peer),
|
peer->owner().history(peer),
|
||||||
FullMsgId());
|
FullMsgId());
|
||||||
|
} else if (const auto storiesPeer = key().storiesPeer()) {
|
||||||
|
return (key().storiesTab() == Stories::Tab::Saved)
|
||||||
|
? Dialogs::RowDescriptor(
|
||||||
|
storiesPeer->owner().history(storiesPeer),
|
||||||
|
FullMsgId())
|
||||||
|
: Dialogs::RowDescriptor();
|
||||||
} else if (key().settingsSelf() || key().isDownloads() || key().poll()) {
|
} else if (key().settingsSelf() || key().isDownloads() || key().poll()) {
|
||||||
return Dialogs::RowDescriptor();
|
return Dialogs::RowDescriptor();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue