Browse Source

clear code

Marino Faggiana 7 years ago
parent
commit
c06b64e07b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Photos/CCPhotos.m

+ 2 - 2
iOSClient/Photos/CCPhotos.m

@@ -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];
+                }
             });
         });
     }