marinofaggiana 5 年之前
父节点
当前提交
57ad82cb0f
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      iOSClient/Networking/CCNetworking.m

+ 5 - 1
iOSClient/Networking/CCNetworking.m

@@ -523,7 +523,7 @@
     [appDelegate.listProgressMetadata removeObjectForKey:ocId];
     [appDelegate.listProgressMetadata removeObjectForKey:ocId];
 #endif
 #endif
     
     
-     tableMetadata *metadata = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"ocId == %@", ocId]];
+    tableMetadata *metadata = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"ocId == %@", ocId]];
     
     
     if (errorCode != 0) {
     if (errorCode != 0) {
         
         
@@ -581,6 +581,10 @@
             }
             }
         }
         }
         
         
+        // NSNotificationCenter
+        NSDictionary* userInfo = @{@"metadata": metadata};
+        [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:k_notificationCenter_downloadFile object:nil userInfo:userInfo];
+        
         // Exif
         // Exif
         if ([metadata.typeFile isEqualToString: k_metadataTypeFile_image])
         if ([metadata.typeFile isEqualToString: k_metadataTypeFile_image])
             [[CCExifGeo sharedInstance] setExifLocalTableEtag:metadata];
             [[CCExifGeo sharedInstance] setExifLocalTableEtag:metadata];