feat: Implement Recent Searches functionality in SearchScreen for improved user experience
This commit is contained in:
@@ -494,6 +494,8 @@ fun SetPasswordScreen(
|
||||
|
||||
accountManager.saveAccount(account)
|
||||
accountManager.setCurrentAccount(keyPair.publicKey)
|
||||
// Save as last logged account for next time
|
||||
accountManager.setLastLoggedPublicKey(keyPair.publicKey)
|
||||
|
||||
// 🔌 Connect to server and authenticate
|
||||
val privateKeyHash = CryptoManager.generatePrivateKeyHash(keyPair.privateKey)
|
||||
|
||||
@@ -587,6 +587,8 @@ fun UnlockScreen(
|
||||
ProtocolManager.authenticate(account.publicKey, privateKeyHash)
|
||||
|
||||
accountManager.setCurrentAccount(account.publicKey)
|
||||
// Save as last logged account for next time
|
||||
accountManager.setLastLoggedPublicKey(account.publicKey)
|
||||
onUnlocked(decryptedAccount)
|
||||
|
||||
} catch (e: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user