marinofaggiana 4 years ago
parent
commit
58cca0932a

+ 2 - 2
iOSClient/AppDelegate.swift

@@ -23,7 +23,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
     var activeFileViewInFolder: NCFileViewInFolder?
     var activeLogin: CCLogin?
     var activeLoginWeb: NCLoginWeb?
-    var activeMedia: NCMedia?
+    @objc var activeMedia: NCMedia?
     var activeMore: NCMore?
     var activeOffline: NCOffline?
     var activeRecent: NCRecent?
@@ -87,7 +87,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
     
     // MARK: -
 
-    func openLoginView(viewController: UIViewController?, selector: Int, openLoginWeb: Bool) {
+    @objc func openLoginView(viewController: UIViewController?, selector: Int, openLoginWeb: Bool) {
         
     }
 

+ 1 - 1
iOSClient/Login/CCLogin.m

@@ -246,7 +246,7 @@
                 
                 UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_ssl_certificate_untrusted_", nil) message:NSLocalizedString(@"_connect_server_anyway_", nil)  preferredStyle:UIAlertControllerStyleAlert];
                 [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_yes_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
-                    [[NCNetworking shared] wrtiteCertificateWithDirectoryCertificate:[CCUtility getDirectoryCerificates]];
+                    [[NCNetworking shared] writeCertificateWithDirectoryCertificate:[CCUtility getDirectoryCerificates]];
                     [appDelegate startTimerErrorNetworking];
                 }]];
                                

+ 1 - 1
iOSClient/Main/NCMainTabBar.swift

@@ -219,7 +219,7 @@ class NCMainTabBar: UITabBar {
     
     @objc func updateBadgeNumber() {
         
-        if appDelegate.account == nil || appDelegate.account.count == 0 { return }
+        if appDelegate.account == "" { return }
         
         let counterDownload = NCOperationQueue.shared.downloadCount()
         let counterUpload = NCManageDatabase.shared.getMetadatas(predicate: NSPredicate(format: "status == %d OR status == %d OR status == %d", NCBrandGlobal.shared.metadataStatusWaitUpload, NCBrandGlobal.shared.metadataStatusInUpload, NCBrandGlobal.shared.metadataStatusUploading)).count

+ 1 - 1
iOSClient/PushNotification/NCPushNotification.m

@@ -50,7 +50,7 @@
 
 - (void)pushNotification
 {
-    if (appDelegate.account == "" || self.pushKitToken.length == 0) { return; }
+    if (self.pushKitToken.length == 0) { return; }
     
     for (tableAccount *result in [[NCManageDatabase shared] getAllAccount]) {
         

+ 1 - 0
iOSClient/Settings/NCManageEndToEndEncryption.m

@@ -23,6 +23,7 @@
 
 #import "NCManageEndToEndEncryption.h"
 #import "NSNotificationCenter+MainThread.h"
+#import <LocalAuthentication/LocalAuthentication.h>
 #import <TOPasscodeViewController/TOPasscodeViewController.h>
 #import "NCBridgeSwift.h"
 #import "CCUtility.h"