Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <m.faggiana@twsweb.it>2017-11-17 13:12:18 +0300
committerMarino Faggiana <marinofaggiana@MacBook-Pro-di-Marino.local>2017-11-17 13:12:18 +0300
commitab366cbdf5b8ab453bf8e83a8a5ab445e66e680e (patch)
tree7741fbc6b9f524680bfdcce531c7d96680f8aa36 /iOSClient/Security/NCEndToEndMetadata.swift
parent3fb9be58d7733dc848d8645155fa77641baffb28 (diff)
clear code
Diffstat (limited to 'iOSClient/Security/NCEndToEndMetadata.swift')
-rw-r--r--iOSClient/Security/NCEndToEndMetadata.swift3
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!)