mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix a crash in saved stories layer management.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user