Group boosts

This commit is contained in:
Ilya Laktyushin
2024-02-07 01:16:12 +04:00
parent 45f200f0e0
commit 0fce018dbf
11 changed files with 228 additions and 136 deletions

View File

@@ -1645,7 +1645,9 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
self.navigationItem.titleView = self.titleView
if case let .assets(collection, mode) = self.subject, mode != .default {
if collection == nil {
if case .wallpaper = mode {
self.navigationItem.leftBarButtonItem = UIBarButtonItem(backButtonAppearanceWithTitle: self.presentationData.strings.Common_Back, target: self, action: #selector(self.backPressed))
} else if collection == nil {
self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: self.presentationData.strings.Common_Cancel, style: .plain, target: self, action: #selector(self.cancelPressed))
// if mode == .story || mode == .addImage {