marinofaggiana 5 년 전
부모
커밋
210f11da11
2개의 변경된 파일3개의 추가작업 그리고 22개의 파일을 삭제
  1. 1 22
      iOSClient/Main/NCDetailViewController.swift
  2. 2 0
      iOSClient/Media/NCMedia.swift

+ 1 - 22
iOSClient/Main/NCDetailViewController.swift

@@ -234,7 +234,7 @@ class NCDetailViewController: UIViewController {
                         }
                     }
                     
-                    if type == "rename" ||  type == "upload"   {
+                    if type == "rename" || type == "upload" || type == "move"   {
                         viewerImageViewController?.reloadContentViews()
                     }
                 }
@@ -307,27 +307,6 @@ class NCDetailViewController: UIViewController {
         }
     }
     
-    @objc func uploadFile(_ notification: NSNotification) {
-        if let userInfo = notification.userInfo as NSDictionary? {
-            if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int {
-                
-                if errorCode != 0 { return }
-                
-                /*
-                // IMAGE (NOT MEDIA)
-                if viewerImageViewController != nil && metadata.account == self.metadata?.account && metadata.serverUrl == self.metadata?.serverUrl && metadata.typeFile == k_metadataTypeFile_image && mediaFilterImage == false {
-                    
-                    if NCViewerImageCommon.shared.getMetadatasDatasource(metadata: self.metadata, metadatas: self.metadatas, favoriteDatasorce: favoriteFilterImage, mediaDatasorce: mediaFilterImage, offLineDatasource: offlineFilterImage) != nil {
-                        viewImage()
-                    } else {
-                        viewUnload()
-                    }
-                }
-                */
-            }
-        }
-    }
-    
     @objc func downloadFile(_ notification: NSNotification) {
         if let userInfo = notification.userInfo as NSDictionary? {
             if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int {

+ 2 - 0
iOSClient/Media/NCMedia.swift

@@ -211,6 +211,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
                 
                 if errorCode == 0 && (metadata.typeFile == k_metadataTypeFile_image || metadata.typeFile == k_metadataTypeFile_video || metadata.typeFile == k_metadataTypeFile_audio) {
 
+                    /*
                     NCManageDatabase.sharedInstance.addMedia(metadata)
                     
                     self.reloadDataSource(loadNetworkDatasource: false) {
@@ -218,6 +219,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
                         let userInfo: [String : Any] = ["metadata": metadata, "type": "upload"]
                         NotificationCenter.default.post(name: Notification.Name.init(rawValue: k_notificationCenter_synchronizationMedia), object: nil, userInfo: userInfo)
                     }
+                    */
                 }
             }
         }