marinofaggiana 5 vuotta sitten
vanhempi
commit
7f63392eba
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 6
      iOSClient/Main/NCDetailViewController.swift

+ 1 - 6
iOSClient/Main/NCDetailViewController.swift

@@ -243,17 +243,12 @@ class NCDetailViewController: UIViewController {
     }
     }
     
     
     @objc func moveFile(_ notification: NSNotification) {
     @objc func moveFile(_ notification: NSNotification) {
-        if let userInfo = notification.userInfo as NSDictionary? {
-            if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int {
-                
-            }
-        }
+        deleteFile(notification)
     }
     }
     
     
     @objc func deleteFile(_ notification: NSNotification) {
     @objc func deleteFile(_ notification: NSNotification) {
         if let userInfo = notification.userInfo as NSDictionary? {
         if let userInfo = notification.userInfo as NSDictionary? {
             if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int {
             if let metadata = userInfo["metadata"] as? tableMetadata, let errorCode = userInfo["errorCode"] as? Int {
-                
                 if errorCode != 0 { return }
                 if errorCode != 0 { return }
                 
                 
                 // IMAGE
                 // IMAGE