From e2e7b4fcc82a12f827721f1ddb6f82d8433f4d32 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 28 Jan 2020 11:14:06 +1100 Subject: [PATCH] Fix minor seed restoration bug --- Signal/src/Loki/View Controllers/RegisterVC.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Signal/src/Loki/View Controllers/RegisterVC.swift b/Signal/src/Loki/View Controllers/RegisterVC.swift index 6c7b7c878..393df7465 100644 --- a/Signal/src/Loki/View Controllers/RegisterVC.swift +++ b/Signal/src/Loki/View Controllers/RegisterVC.swift @@ -185,6 +185,7 @@ final class RegisterVC : UIViewController { databaseConnection.setObject(seed.toHexString(), forKey: "LKLokiSeed", inCollection: OWSPrimaryStorageIdentityKeyStoreCollection) databaseConnection.setObject(keyPair!, forKey: OWSPrimaryStorageIdentityKeyStoreIdentityKey, inCollection: OWSPrimaryStorageIdentityKeyStoreCollection) TSAccountManager.sharedInstance().phoneNumberAwaitingVerification = keyPair!.hexEncodedPublicKey + OWSPrimaryStorage.shared().setRestorationTime(0) UserDefaults.standard.set(false, forKey: "hasViewedSeed") let displayNameVC = DisplayNameVC() navigationController!.pushViewController(displayNameVC, animated: true)