Various fixes

This commit is contained in:
Ilya Laktyushin
2023-06-29 22:36:03 +02:00
parent ffcc989aee
commit 3b6c81e9b1
2 changed files with 8 additions and 4 deletions

View File

@@ -705,9 +705,13 @@ final class MediaEditorScreenComponent: Component {
guard let controller = environment.controller() as? MediaEditorScreen else {
return
}
controller.openPrivacySettings(completion: { [weak controller] in
controller?.requestCompletion(animated: true)
})
if controller.isEditingStory {
controller.requestCompletion(animated: true)
} else {
controller.openPrivacySettings(completion: { [weak controller] in
controller?.requestCompletion(animated: true)
})
}
}
)),
environment: {},