marinofaggiana %!s(int64=5) %!d(string=hai) anos
pai
achega
7f63392eba
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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) {
-        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) {
         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