浏览代码

rename file e2e

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

+ 1 - 3
iOSClient/Main/CCMain.m

@@ -2106,7 +2106,6 @@
             return;
         }
         
-        // Prima rinominare nella tabella tableE2eEncryption
         if ([[NCManageDatabase sharedInstance] renameFileE2eEncryptionWithServerUrl:self.serverUrl fileNameIdentifier:metadata.fileName newFileName:fileName newFileNamePath:[CCUtility returnFileNamePathFromFileName:fileName serverUrl:self.serverUrl activeUrl:app.activeUrl]]) {
             
             NSArray *tableE2eEncryption = [[NCManageDatabase sharedInstance] getE2eEncryptionsWithPredicate:[NSPredicate predicateWithFormat:@"account = %@ AND serverUrl = %@", app.activeAccount, self.serverUrl]];
@@ -2117,9 +2116,8 @@
                 
                     BOOL result = [[CCNetworking sharedNetworking] SendEndToEndMetadata:e2eMetadataJSON serverUrl:self.serverUrl];
                     if (!result) {
-                        // Restore preview fileName on DB
+                        // Restore previuos fileName on DB
                         (void)[[NCManageDatabase sharedInstance] renameFileE2eEncryptionWithServerUrl:self.serverUrl fileNameIdentifier:metadata.fileName newFileName:metadata.fileNameView newFileNamePath:[CCUtility returnFileNamePathFromFileName:metadata.fileNameView serverUrl:self.serverUrl activeUrl:app.activeUrl]];
-                        
                         [app messageNotification:@"_error_" description:@"Error to send metadata" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeError errorCode:0];
                     }
                 });