Marino Faggiana преди 7 години
родител
ревизия
75776d9ce0
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      iOSClient/Security/NCEntoToEndInterface.swift

+ 3 - 1
iOSClient/Security/NCEntoToEndInterface.swift

@@ -319,10 +319,12 @@ class NCEntoToEndInterface : NSObject, OCNetworkingDelegate  {
         CCUtility.setEndToEndPublicKeyServer(appDelegate.activeAccount, publicKey: metadataNet.key)
         
         // Clear Table
-        NCManageDatabase.sharedInstance.clearTable(tableMetadata.self, account: appDelegate.activeAccount)
         NCManageDatabase.sharedInstance.clearTable(tableDirectory.self, account: appDelegate.activeAccount)
         NCManageDatabase.sharedInstance.clearTable(tableE2eEncryption.self, account: appDelegate.activeAccount)
 
+        // Reload All Datasource
+        NotificationCenter.default.post(name: Notification.Name("clearDateReadDataSource"), object: nil)
+
         // All OK Activated flsg on Manage EndToEnd Encryption
         NotificationCenter.default.post(name: Notification.Name("reloadManageEndToEndEncryption"), object: nil)
     }