mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Remove the multipleAttachmentUploadEnabled feature flag.
This commit is contained in:
@@ -41,6 +41,8 @@ struct DocumentPicker: UIViewControllerRepresentable {
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: UIDocumentPickerViewController, context: Context) {
|
||||
// Override the app wide tint color (currently set to `.compound.texActionPrimary
|
||||
// as it's not legible enough in dark mode
|
||||
uiViewController.view.tintColor = .compound.textActionAccent
|
||||
}
|
||||
|
||||
|
||||
@@ -29,23 +29,19 @@ enum MediaPickerScreenCoordinatorAction {
|
||||
}
|
||||
|
||||
class MediaPickerScreenCoordinator: CoordinatorProtocol {
|
||||
private let orientationManager: OrientationManagerProtocol
|
||||
private let userIndicatorController: UserIndicatorControllerProtocol
|
||||
private let mode: MediaPickerScreenMode
|
||||
private let userIndicatorController: UserIndicatorControllerProtocol
|
||||
private let orientationManager: OrientationManagerProtocol
|
||||
private let callback: (MediaPickerScreenCoordinatorAction) -> Void
|
||||
|
||||
init(mode: MediaPickerScreenMode,
|
||||
appSettings: AppSettings,
|
||||
userIndicatorController: UserIndicatorControllerProtocol,
|
||||
orientationManager: OrientationManagerProtocol,
|
||||
callback: @escaping (MediaPickerScreenCoordinatorAction) -> Void) {
|
||||
self.mode = mode
|
||||
self.userIndicatorController = userIndicatorController
|
||||
self.orientationManager = orientationManager
|
||||
self.callback = callback
|
||||
|
||||
// The users of the media picker chose their ideal selection type leaving
|
||||
// the feature flag to only be checked and enforced on this level.
|
||||
self.mode = appSettings.multipleAttachmentUploadEnabled ? mode : .init(source: mode.source, selectionType: .single)
|
||||
}
|
||||
|
||||
func toPresentable() -> AnyView {
|
||||
|
||||
@@ -49,6 +49,8 @@ struct PhotoLibraryPicker: UIViewControllerRepresentable {
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: PHPickerViewController, context: Context) {
|
||||
// Override the app wide tint color (currently set to `.compound.texActionPrimary
|
||||
// as it's not legible enough in dark mode
|
||||
uiViewController.view.tintColor = .compound.textActionAccent
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user