mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-31 05:11:07 +00:00
fix: getPhotos crash if there is a quote in album name (#156)
This commit is contained in:
@@ -275,7 +275,8 @@ RCT_EXPORT_METHOD(getPhotos:(NSDictionary *)params
|
||||
PHFetchOptions *const collectionFetchOptions = [PHFetchOptions new];
|
||||
collectionFetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"endDate" ascending:NO]];
|
||||
if (groupName != nil) {
|
||||
collectionFetchOptions.predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"localizedTitle == '%@'", groupName]];
|
||||
collectionFetchOptions.predicate = [NSPredicate predicateWithFormat:@"localizedTitle = %@", groupName];
|
||||
|
||||
}
|
||||
|
||||
BOOL __block stopCollections_;
|
||||
|
||||
Reference in New Issue
Block a user