Browse Source

clear data

Marino Faggiana 7 years ago
parent
commit
75776d9ce0
1 changed files with 3 additions and 1 deletions
  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)
     }