This commit is contained in:
Thomas Ricouard 2024-02-05 08:59:27 +01:00
parent d10adf1fd9
commit cfd6eed159

View file

@ -111,7 +111,7 @@ extension StatusEditor {
}
.photosPicker(isPresented: $isPhotosPickerPresented,
selection: $viewModel.mediaPickers,
maxSelectionCount: 4,
maxSelectionCount: currentInstance.instance?.configuration?.statuses.maxMediaAttachments ?? 4,
matching: .any(of: [.images, .videos]),
photoLibrary: .shared())
.fileImporter(isPresented: $isFileImporterPresented,