Skip to content

Commit

Permalink
Merge branch 'nbuquet/mediapicker-list-albums-under-ios18' of github.…
Browse files Browse the repository at this point in the history
…com:NicolasBuquet/element-ios-tchap into nbuquet/mediapicker-list-albums-under-ios18
  • Loading branch information
NicolasBuquet committed Jan 2, 2025
2 parents 569a754 + d6e3611 commit a85b8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Riot/Modules/MediaPicker/MediaPickerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ - (void)reloadUserLibraryAlbums
MXStrongifyAndReturnIfNil(self);

// List user albums which are not empty
// 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?
// 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:PHAssetCollectionSubtypeAny options:nil];

NSMutableArray *updatedUserAlbums = [NSMutableArray array];
Expand Down

0 comments on commit a85b8ee

Please sign in to comment.