Updated the Identity type to clear everything instead of just the x25519 pair

pull/612/head
Morgan Pretty 2 years ago
parent 410f37f0d5
commit 72eeb1c796

@ -111,11 +111,9 @@ public extension Identity {
}
}
// TODO: Should this actually clear all identity values???
static func clearUserKeyPair() {
GRDBStorage.shared.write { db in
try Identity.deleteOne(db, id: .x25519PublicKey)
try Identity.deleteOne(db, id: .x25519PrivateKey)
try Identity.deleteAll(db)
}
}
}

Loading…
Cancel
Save