marinofaggiana 5 жил өмнө
parent
commit
380d5e7800

+ 2 - 0
iOSClient/AppDelegate.m

@@ -1394,6 +1394,8 @@ PKPushRegistry *pushRegistry;
                 
                 counterUpload++;
                 sizeUpload = sizeUpload + metadata.size;
+            } else {
+                break;
             }
             
         } else {

+ 1 - 0
iOSClient/Networking/CCNetworking.m

@@ -1129,6 +1129,7 @@
             
             if (![tempocId isEqualToString:metadata.ocId]) {
                 [CCUtility copyFileAtPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], tempocId] toPath:[NSString stringWithFormat:@"%@/%@", [CCUtility getDirectoryProviderStorage], metadata.ocId]];
+                [[NCManageDatabase sharedInstance] deleteMetadataWithPredicate:[NSPredicate predicateWithFormat:@"ocId == %@", tempocId]];
             }
             
         } else {