mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-31 01:25:50 +00:00
Fix crash in going from saved music to a chat.
This commit is contained in:
@@ -70,6 +70,8 @@ Memento::Memento(not_null<Controller*> controller)
|
||||
? controller->peer()
|
||||
: controller->storiesPeer()
|
||||
? controller->storiesPeer()
|
||||
: controller->musicPeer()
|
||||
? controller->musicPeer()
|
||||
: controller->parentController()->session().user()),
|
||||
controller->topic(),
|
||||
controller->sublist(),
|
||||
@@ -78,6 +80,8 @@ Memento::Memento(not_null<Controller*> controller)
|
||||
? Type::File
|
||||
: controller->section().type() == Section::Type::Stories
|
||||
? Type::PhotoVideo
|
||||
: controller->section().type() == Section::Type::SavedMusic
|
||||
? Type::MusicFile
|
||||
: controller->section().mediaType())) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user