marinofaggiana 5 سال پیش
والد
کامیت
87539a60b2
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      iOSClient/Main/Menu/NCDetailNavigationController+Menu.swift
  2. 1 1
      iOSClient/Networking/NCNetworking.swift

+ 1 - 1
iOSClient/Main/Menu/NCDetailNavigationController+Menu.swift

@@ -58,7 +58,7 @@ extension NCDetailNavigationController {
                     
                     alertController.addAction(UIAlertAction(title: NSLocalizedString("_yes_delete_", comment: ""), style: .default) { (action:UIAlertAction) in
                         
-                        NCNetworking.sharedInstance.deleteMetadata(metadata, notificationCenterPost: true) { (errorCode, errorMessage) in
+                        NCNetworking.sharedInstance.deleteMetadata(metadata, notificationCenterPost: true) { (errorCode, errorDescription) in
                             if errorCode == 0 {
                                 NCMainCommon.sharedInstance.reloadDatasource(ServerUrl: metadata.serverUrl, ocId: metadata.ocId, action: k_action_DEL)
                             }

+ 1 - 1
iOSClient/Networking/NCNetworking.swift

@@ -247,7 +247,7 @@ import NCCommunication
     
     //MARK: - WebDav
     
-    @objc func deleteMetadata(_ metadata: tableMetadata, notificationCenterPost:Bool, completion: @escaping (_ errorCode: Int, _ message: String)->()) {
+    @objc func deleteMetadata(_ metadata: tableMetadata, notificationCenterPost:Bool, completion: @escaping (_ errorCode: Int, _ errorDescription: String)->()) {
         
         // verify permission
         let permission = NCUtility.sharedInstance.permissionsContainsString(metadata.permissions, permissions: k_permission_can_delete)