Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Share
diff options
context:
space:
mode:
authormarinofaggiana <marino@marinofaggiana.com>2020-05-15 17:01:25 +0300
committermarinofaggiana <marino@marinofaggiana.com>2020-05-15 17:01:25 +0300
commit71bf3dc750d788db68f9f4ff7e97446475583ac3 (patch)
treeb0fcb5b51fd7d65492d095a1bcbed091eebdf40e /Share
parent79e4ae5240bb338ca6b4fece24fe60adf6e69df6 (diff)
clear code
Diffstat (limited to 'Share')
-rw-r--r--Share/NCSelectDestination.m2
-rw-r--r--Share/ShareViewController.m4
2 files changed, 3 insertions, 3 deletions
diff --git a/Share/NCSelectDestination.m b/Share/NCSelectDestination.m
index 2a59e85a4..253016281 100644
--- a/Share/NCSelectDestination.m
+++ b/Share/NCSelectDestination.m
@@ -188,7 +188,7 @@
{
NSString *serverUrlFileName = [NSString stringWithFormat:@"%@/%@", _serverUrl, fileNameFolder];
- [[NCCommunication sharedInstance] createFolder:serverUrlFileName customUserAgent:nil addCustomHeaders:nil account:activeAccount completionHandler:^(NSString *account, NSString *ocID, NSDate *date, NSInteger errorCode, NSString *errorDecription) {
+ [[NCCommunication shared] createFolder:serverUrlFileName customUserAgent:nil addCustomHeaders:nil account:activeAccount completionHandler:^(NSString *account, NSString *ocID, NSDate *date, NSInteger errorCode, NSString *errorDecription) {
if (errorCode == 0) {
[self readFolder];
} else {
diff --git a/Share/ShareViewController.m b/Share/ShareViewController.m
index 727289430..10e0d99e2 100644
--- a/Share/ShareViewController.m
+++ b/Share/ShareViewController.m
@@ -65,7 +65,7 @@
NSString *webDavRoot = [[NCManageDatabase sharedInstance] getCapabilitiesServerStringWithAccount:tableAccount.account elements:NCElementsJSON.shared.capabilitiesWebDavRoot];
// Networking
- [[NCCommunicationCommon sharedInstance] setupWithUser:tableAccount.user userId:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] url:tableAccount.url userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups webDavRoot:webDavRoot davRoot:nil nextcloudVersion:serverVersionMajor delegate:[NCNetworking sharedInstance]];
+ [[NCCommunicationCommon shared] setupWithUser:tableAccount.user userId:tableAccount.userID password:[CCUtility getPassword:tableAccount.account] url:tableAccount.url userAgent:[CCUtility getUserAgent] capabilitiesGroup:[NCBrandOptions sharedInstance].capabilitiesGroups webDavRoot:webDavRoot davRoot:nil nextcloudVersion:serverVersionMajor delegate:[NCNetworking sharedInstance]];
_activeAccount = tableAccount.account;
@@ -271,7 +271,7 @@
NSString *fileNameForUpload = [[NCUtility sharedInstance] createFileName:fileName serverUrl:self.serverUrl account:self.activeAccount];
NSString *fileNameServer = [NSString stringWithFormat:@"%@/%@", self.serverUrl, fileNameForUpload];
- (void)[[NCCommunication sharedInstance] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil customUserAgent:nil addCustomHeaders:nil account:self.activeAccount progressHandler:^(NSProgress * progress) {
+ (void)[[NCCommunication shared] uploadWithServerUrlFileName:fileNameServer fileNameLocalPath:fileNameLocal dateCreationFile:nil dateModificationFile:nil customUserAgent:nil addCustomHeaders:nil account:self.activeAccount progressHandler:^(NSProgress * progress) {
[self.hud progress:progress.fractionCompleted];
} completionHandler:^(NSString *account, NSString *ocId, NSString *etag, NSDate *date, int64_t size, NSInteger errorCode, NSString *errorDescription) {
[self.hud hideHud];