marinofaggiana 4 years ago
parent
commit
279ef3fa42

+ 2 - 2
iOSClient/Share/NCShare.swift

@@ -128,7 +128,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
         
         guard let searchString = textField.text else { return }
 
-        networking?.getUserAndGroup(searchString: searchString)
+        networking?.getSharees(searchString: searchString)
     }
     
     @IBAction func touchUpInsideButtonCopy(_ sender: Any) {
@@ -243,7 +243,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
     
     func updateShareWithError(idShare: Int) { }
     
-    func getUserAndGroup(sharees: [NCCommunicationSharee]?) {
+    func getSharees(sharees: [NCCommunicationSharee]?) {
         
         guard let sharees = sharees else { return }
 

+ 1 - 1
iOSClient/Share/NCShareLinkMenuView.swift

@@ -394,7 +394,7 @@ class NCShareLinkMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
         reloadData(idShare: idShare)
     }
     
-    func getUserAndGroup(sharees: [NCCommunicationSharee]?) { }
+    func getSharees(sharees: [NCCommunicationSharee]?) { }
     
     // MARK: - Delegate calendar
     

+ 4 - 4
iOSClient/Share/NCShareNetworking.swift

@@ -118,15 +118,15 @@ class NCShareNetworking: NSObject {
         }
     }
     
-    func getUserAndGroup(searchString: String) {
+    func getSharees(searchString: String) {
         NCUtility.sharedInstance.startActivityIndicator(view: view)
         NCCommunication.shared.searchSharees(search: searchString) { (account, sharees, errorCode, errorDescription) in
             NCUtility.sharedInstance.stopActivityIndicator()
             if errorCode == 0 {
-                self.delegate?.getUserAndGroup(sharees: sharees)
+                self.delegate?.getSharees(sharees: sharees)
             } else {
                 NCContentPresenter.shared.messageNotification("_share_", description: errorDescription, delay: TimeInterval(k_dismissAfterSecond), type: NCContentPresenter.messageType.error, errorCode: 0)
-                self.delegate?.getUserAndGroup(sharees: nil)
+                self.delegate?.getSharees(sharees: nil)
             }
         }
     }
@@ -137,5 +137,5 @@ protocol NCShareNetworkingDelegate {
     func shareCompleted()
     func unShareCompleted()
     func updateShareWithError(idShare: Int)
-    func getUserAndGroup(sharees: [NCCommunicationSharee]?)
+    func getSharees(sharees: [NCCommunicationSharee]?)
 }

+ 1 - 1
iOSClient/Share/NCShareUserMenuView.swift

@@ -326,7 +326,7 @@ class NCShareUserMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
         reloadData(idShare: idShare)
     }
     
-    func getUserAndGroup(sharees: [NCCommunicationSharee]?) { }
+    func getSharees(sharees: [NCCommunicationSharee]?) { }
     
     // MARK: - Delegate calendar