mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +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(
|
||||
peer->owner().history(peer),
|
||||
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()) {
|
||||
return Dialogs::RowDescriptor();
|
||||
}
|
||||
|
Reference in New Issue
Block a user