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];
|
PHFetchOptions *const collectionFetchOptions = [PHFetchOptions new];
|
||||||
collectionFetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"endDate" ascending:NO]];
|
collectionFetchOptions.sortDescriptors = @[[NSSortDescriptor sortDescriptorWithKey:@"endDate" ascending:NO]];
|
||||||
if (groupName != nil) {
|
if (groupName != nil) {
|
||||||
collectionFetchOptions.predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"localizedTitle == '%@'", groupName]];
|
collectionFetchOptions.predicate = [NSPredicate predicateWithFormat:@"localizedTitle = %@", groupName];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL __block stopCollections_;
|
BOOL __block stopCollections_;
|
||||||
|
|
Loading…
Reference in New Issue