marinofaggiana 4 years ago
parent
commit
81f7143168

+ 1 - 1
iOSClient/AppDelegate.swift

@@ -35,7 +35,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
     
     var timerErrorNetworking: Timer?
     var documentPickerViewController: NCDocumentPickerViewController?
-    var shares: [String] = []
+    var shares: [tableShare] = []
 
     
     /*

+ 1 - 1
iOSClient/Networking/NCNetworkingNotificationCenter.swift

@@ -85,7 +85,7 @@ import Foundation
                                 
                             } else {
                                 
-                                if let viewController == self.appDelegate.activeViewController {
+                                if let viewController = self.appDelegate.activeViewController {
                                     NCViewer.shared.view(viewController: viewController, metadata: metadata, metadatas: [metadata])
                                 }
                             }