Marino Faggiana 6 жил өмнө
parent
commit
e1f056b8b6

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -2090,7 +2090,7 @@
 {
     CCMetadataNet *metadataNet = [[CCMetadataNet alloc] initWithAccount:appDelegate.activeAccount];
     
-    metadataNet.action = actionReadShareServer;
+    //metadataNet.action = actionReadShareServer;
     metadataNet.fileID = metadata.fileID;
     metadataNet.fileName = metadata.fileName;
     metadataNet.fileNameView = metadata.fileNameView;

+ 8 - 0
iOSClient/Networking/NCService.swift

@@ -224,6 +224,14 @@ class NCService: NSObject, OCNetworkingDelegate {
                     
                     ocNetworking?.readShareServer(account!, completion: { (account, items, message, errorCode) in
                         
+                        if errorCode == 0 && account! == self.appDelegate.activeAccount {
+                            
+                            if items != nil {
+                                for item in items! as! [OCSharedDto]  {
+                                    self.appDelegate.sharesID.setObject(item, forKey: NSString(string: String(item.idRemoteShared)))
+                                }
+                            }
+                        }
                     })
                 }