diff options
author | Marino Faggiana <m.faggiana@twsweb.it> | 2017-11-17 13:12:18 +0300 |
---|---|---|
committer | Marino Faggiana <marinofaggiana@MacBook-Pro-di-Marino.local> | 2017-11-17 13:12:18 +0300 |
commit | ab366cbdf5b8ab453bf8e83a8a5ab445e66e680e (patch) | |
tree | 7741fbc6b9f524680bfdcce531c7d96680f8aa36 /iOSClient/Security/NCEndToEndMetadata.swift | |
parent | 3fb9be58d7733dc848d8645155fa77641baffb28 (diff) |
clear code
Diffstat (limited to 'iOSClient/Security/NCEndToEndMetadata.swift')
-rw-r--r-- | iOSClient/Security/NCEndToEndMetadata.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iOSClient/Security/NCEndToEndMetadata.swift b/iOSClient/Security/NCEndToEndMetadata.swift index 6e08a4b54..ea9bde082 100644 --- a/iOSClient/Security/NCEndToEndMetadata.swift +++ b/iOSClient/Security/NCEndToEndMetadata.swift @@ -148,6 +148,9 @@ class NCEndToEndMetadata : NSObject { let jsonDecoder = JSONDecoder.init() let data = e2eMetaDataJSON.data(using: .utf8) + // Remove all records e2eMetadata + NCManageDatabase.sharedInstance.deleteE2eEncryption(predicate: NSPredicate(format: "account = %@ AND serverUrl = %@", account, serverUrl)) + do { let decode = try jsonDecoder.decode(e2eMetadata.self, from: data!) |