feat: Implement Recent Searches functionality in SearchScreen for improved user experience

This commit is contained in:
k1ngsterr1
2026-01-12 17:05:38 +05:00
parent 325c5ace4b
commit 67e99901be
5 changed files with 273 additions and 11 deletions

View File

@@ -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)

View File

@@ -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) {