marinofaggiana 5 年之前
父节点
当前提交
e007c60646
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Media/NCMedia.swift

+ 1 - 1
iOSClient/Media/NCMedia.swift

@@ -155,7 +155,7 @@ class NCMedia: UIViewController, DropdownMenuDelegate, DZNEmptyDataSetSource, DZ
 
     @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, let errorDescription = userInfo["errorDescription"] as? String {
+            if let metadata = userInfo["metadata"] as? tableMetadata {
                 self.selectocId.removeAll { $0 == metadata.ocId }
                 self.reloadDataSource(loadNetworkDatasource: false)
             }