Fix minor seed restoration bug

pull/81/head
Niels Andriesse 5 years ago
parent d3904589e3
commit e2e7b4fcc8

@ -185,6 +185,7 @@ final class RegisterVC : UIViewController {
databaseConnection.setObject(seed.toHexString(), forKey: "LKLokiSeed", inCollection: OWSPrimaryStorageIdentityKeyStoreCollection) databaseConnection.setObject(seed.toHexString(), forKey: "LKLokiSeed", inCollection: OWSPrimaryStorageIdentityKeyStoreCollection)
databaseConnection.setObject(keyPair!, forKey: OWSPrimaryStorageIdentityKeyStoreIdentityKey, inCollection: OWSPrimaryStorageIdentityKeyStoreCollection) databaseConnection.setObject(keyPair!, forKey: OWSPrimaryStorageIdentityKeyStoreIdentityKey, inCollection: OWSPrimaryStorageIdentityKeyStoreCollection)
TSAccountManager.sharedInstance().phoneNumberAwaitingVerification = keyPair!.hexEncodedPublicKey TSAccountManager.sharedInstance().phoneNumberAwaitingVerification = keyPair!.hexEncodedPublicKey
OWSPrimaryStorage.shared().setRestorationTime(0)
UserDefaults.standard.set(false, forKey: "hasViewedSeed") UserDefaults.standard.set(false, forKey: "hasViewedSeed")
let displayNameVC = DisplayNameVC() let displayNameVC = DisplayNameVC()
navigationController!.pushViewController(displayNameVC, animated: true) navigationController!.pushViewController(displayNameVC, animated: true)

Loading…
Cancel
Save