marinofaggiana 4 years ago
parent
commit
cc9665dfd7

+ 1 - 1
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -218,7 +218,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     @objc func changeStatusFolderE2EE(_ notification: NSNotification) {
         if self.view?.window == nil { return }
         
-        reloadDataSourceNetwork(forced: true)
+        reloadDataSource()
     }
     
     @objc func deleteFile(_ notification: NSNotification) {

+ 1 - 1
iOSClient/Main/Menu/NCCollectionViewCommon+Menu.swift

@@ -246,7 +246,7 @@ extension NCCollectionViewCommon {
                     action: { menuAction in
                         NCCommunication.shared.markE2EEFolder(fileId: metadata.fileId, delete: true) { (account, errorCode, errorDescription) in
                             if errorCode == 0 {
-                                let serverUrl = self.serverUrl + "/" + metadata.fileName
+                                let serverUrl = metadata.serverUrl + "/" + metadata.fileName
                                 NCManageDatabase.sharedInstance.deleteE2eEncryption(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", appDelegate.account, serverUrl))
                                 NCManageDatabase.sharedInstance.setDirectory(serverUrl: serverUrl, serverUrlTo: nil, etag: nil, ocId: nil, fileId: nil, encrypted: false, richWorkspace: nil, account: metadata.account)
                                 NCManageDatabase.sharedInstance.setMetadataEncrypted(ocId: metadata.ocId, encrypted: false)