mirror of
https://github.com/status-im/react-native-cameraroll.git
synced 2025-02-11 09:06:36 +00:00
fix: getPhotos crash if there is a quote in album name (#156)
This commit is contained in:
parent
9fb2f4a75a
commit
f51d38783e
@ -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_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user