浏览代码

clear data

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)
     }