Marino Faggiana 7 年之前
父节点
当前提交
e8feba22dd
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      iOSClient/Main/CCMain.m

+ 1 - 3
iOSClient/Main/CCMain.m

@@ -1351,8 +1351,6 @@
 
 - (void)downloadFileFailure:(NSString *)etag serverUrl:(NSString *)serverUrl selector:(NSString *)selector message:(NSString *)message errorCode:(NSInteger)errorCode
 {
-    //tableMetadata *metadata = [CCCoreData getMetadataWithPreficate:[NSPredicate predicateWithFormat:@"(etag == %@) AND (account == %@)", etag, app.activeAccount] context:nil];
-    
     tableMetadata *metadata = [[NCManageDatabase sharedInstance] getMetadataWithPreficate:[NSPredicate predicateWithFormat:@"(etag == %@) AND (account == %@)", etag, app.activeAccount]];
     
     // File do not exists on server, remove in local
@@ -1379,7 +1377,7 @@
             [app messageNotification:@"_download_file_" description:message visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeError errorCode:errorCode];
     }
 
-    [self reloadDatasource:serverUrl etag:metadata.etag selector:selector];
+    [self reloadDatasource:serverUrl etag:etag selector:selector];
 }
 
 - (void)downloadFileSuccess:(NSString *)etag serverUrl:(NSString *)serverUrl selector:(NSString *)selector selectorPost:(NSString *)selectorPost