diff --git a/Riot/Modules/MediaPicker/MediaPickerViewController.m b/Riot/Modules/MediaPicker/MediaPickerViewController.m index 4e9a33ff3..28248efe9 100644 --- a/Riot/Modules/MediaPicker/MediaPickerViewController.m +++ b/Riot/Modules/MediaPicker/MediaPickerViewController.m @@ -392,8 +392,11 @@ - (void)reloadUserLibraryAlbums MXStrongifyAndReturnIfNil(self); // List user albums which are not empty - PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAlbumRegular options:nil]; - + // Tchap: starting from iOS 18, select any subtype albums rather than regular ones else no album is listed (only a few recents photos) + // Maybe because 'smart' albums get a full revamp in iOS 18? +// PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAlbumRegular options:nil]; + PHFetchResult *albums = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum subtype:PHAssetCollectionSubtypeAny options:nil]; + NSMutableArray *updatedUserAlbums = [NSMutableArray array]; __block PHAssetCollection *cameraRollAlbum, *videoAlbum; diff --git a/changelog.d/1143.bugfix b/changelog.d/1143.bugfix new file mode 100644 index 000000000..1c1d2495c --- /dev/null +++ b/changelog.d/1143.bugfix @@ -0,0 +1 @@ +Réactiver l'affichage des albums dans le sélecteur de media sous iOS 18. \ No newline at end of file