Ver código fonte

dev schema nextcloud

marinofaggiana 5 anos atrás
pai
commit
245f6b6f7a
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      iOSClient/AppDelegate.m

+ 4 - 4
iOSClient/AppDelegate.m

@@ -1560,21 +1560,21 @@ PKPushRegistry *pushRegistry;
                     [CATransaction begin];
                     [CATransaction setCompletionBlock:^{
                         
-                        NSString *fileNamePath = [NSString stringWithFormat:@"%@%@/%@", account.url, k_webDAV, path];
+                        NSString *fileNamePath = [NSString stringWithFormat:@"%@%@/%@", matchedAccount.url, k_webDAV, path];
 
                         if ([path containsString:@"/"]) {
                             
                             // Push
                             NSString *directoryName = [[path stringByDeletingLastPathComponent] lastPathComponent];
-                            NSString *serverUrl = [CCUtility deletingLastPathComponentFromServerUrl:[NSString stringWithFormat:@"%@%@/%@", account.url, k_webDAV, [path stringByDeletingLastPathComponent]]];
+                            NSString *serverUrl = [CCUtility deletingLastPathComponentFromServerUrl:[NSString stringWithFormat:@"%@%@/%@", matchedAccount.url, k_webDAV, [path stringByDeletingLastPathComponent]]];
                             
-                            tableMetadata *metadata = [CCUtility createMetadataWithAccount:account.account date:[NSDate date] directory:NO fileID:[[NSUUID UUID] UUIDString] serverUrl:serverUrl fileName:directoryName etag:@"" size:0 status:k_metadataStatusNormal url:@""];
+                            tableMetadata *metadata = [CCUtility createMetadataWithAccount:matchedAccount.account date:[NSDate date] directory:NO fileID:[[NSUUID UUID] UUIDString] serverUrl:serverUrl fileName:directoryName etag:@"" size:0 status:k_metadataStatusNormal url:@""];
                             [self.activeMain performSegueDirectoryWithControlPasscode:true metadata:metadata scrollToFileNamePath:fileNamePath];
                             
                         } else {
                             
                             // Reload folder
-                            NSString *serverUrl = [NSString stringWithFormat:@"%@%@", account.url, k_webDAV];
+                            NSString *serverUrl = [NSString stringWithFormat:@"%@%@", matchedAccount.url, k_webDAV];
                             
                             self.activeMain.scrollToFileNamePath = fileNamePath;
                             [self.activeMain readFolder:serverUrl];