|
@@ -674,7 +674,6 @@
|
|
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
|
|
|
|
NSString *startDirectory = [[NCManageDatabase sharedInstance] getAccountStartDirectoryPhotosTab:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl]];
|
|
|
-
|
|
|
NSArray *metadatasDBImageVideo = [[NCManageDatabase sharedInstance] getTableMetadatasContentTypeImageVideo:startDirectory activeUrl:appDelegate.activeUrl];
|
|
|
CCSectionDataSourceMetadata *tempSectionDataSource = [CCSectionMetadata creataDataSourseSectionMetadata:metadatasDBImageVideo listProgressMetadata:nil groupByField:@"date" activeAccount:appDelegate.activeAccount];
|
|
|
|
|
@@ -684,8 +683,9 @@
|
|
|
_sectionDataSource = [tempSectionDataSource copy];
|
|
|
[self reloadCollection];
|
|
|
}
|
|
|
- if (fromSearch)
|
|
|
+ if (fromSearch) {
|
|
|
[self searchInProgress:NO];
|
|
|
+ }
|
|
|
});
|
|
|
});
|
|
|
}
|