Marino Faggiana 8 년 전
부모
커밋
7b47e49c7e
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      iOSClient/Main/CCSection.m

+ 2 - 3
iOSClient/Main/CCSection.m

@@ -74,13 +74,12 @@
     for (tableMetadata* metadata in records) {
         
         // if exists replace date with exif date
-        /*
         if (replaceDateToExifDate) {
-            TableLocalFile *localFile = [CCCoreData getLocalFileWithFileID:metadata.fileID activeAccount:activeAccount];
+            
+            tableLocalFile *localFile = [[NCManageDatabase sharedInstance] getTableLocalFileWithPredicate:[NSPredicate predicateWithFormat:@"fileID = %@", metadata.fileID]];
             if (localFile.exifDate)
                 metadata.date = localFile.exifDate;
         }
-        */
         
         if ([listProgressMetadata objectForKey:metadata.fileID] && [groupByField isEqualToString:@"session"]) {
             [copyRecords insertObject:metadata atIndex:0];