From cf31d8161db9f981fb41b60734f7b5c5020763dc Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Thu, 2 Jan 2025 14:46:00 +0100 Subject: [PATCH] =?UTF-8?q?R=C3=A9activer=20l'affichage=20des=20albums=20d?= =?UTF-8?q?ans=20le=20s=C3=A9lecteur=20de=20media=20sous=20iOS=2018?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Riot/Modules/MediaPicker/MediaPickerViewController.m | 7 +++++-- changelog.d/1143.bugfix | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelog.d/1143.bugfix 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