|
@@ -160,12 +160,6 @@ class NCService: NSObject {
|
|
// File Sharing
|
|
// File Sharing
|
|
let isFilesSharingEnabled = NCManageDatabase.sharedInstance.getCapabilitiesServerBool(account: account, elements: NCElementsJSON.shared.capabilitiesFileSharingApiEnabled, exists: false)
|
|
let isFilesSharingEnabled = NCManageDatabase.sharedInstance.getCapabilitiesServerBool(account: account, elements: NCElementsJSON.shared.capabilitiesFileSharingApiEnabled, exists: false)
|
|
if (isFilesSharingEnabled && self.appDelegate.activeMain != nil) {
|
|
if (isFilesSharingEnabled && self.appDelegate.activeMain != nil) {
|
|
-
|
|
|
|
- /*
|
|
|
|
- NCCommunication.shared.readShare { (account, shares, errorCode, errorDescription) in
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- */
|
|
|
|
|
|
|
|
OCNetworking.sharedManager()?.readShare(withAccount: account, completion: { (account, items, message, errorCode) in
|
|
OCNetworking.sharedManager()?.readShare(withAccount: account, completion: { (account, items, message, errorCode) in
|
|
if errorCode == 0 && account == self.appDelegate.activeAccount {
|
|
if errorCode == 0 && account == self.appDelegate.activeAccount {
|