remove toast message

This commit is contained in:
2026-07-06 07:20:43 +07:00
parent 80c6426d27
commit 0ad872d186
2 changed files with 11 additions and 10 deletions

View File

@@ -242,13 +242,17 @@ fun ImportScreen() {
Button(
onClick = {
scope.launch {
if (pubkey == null) {
authViewModel.verifyIdentity(secret).let { pubkey = it }
} else {
// Import the identity
authViewModel.importIdentity(secret)
// Navigate to the home screen
navigator.navigate(Screen.Home)
try {
if (pubkey == null) {
authViewModel.verifyIdentity(secret).let { pubkey = it }
} else {
// Import the identity
authViewModel.importIdentity(secret)
// Navigate to the home screen
navigator.navigate(Screen.Home)
}
} catch (e: Exception) {
snackbarHostState.showSnackbar("Error: ${e.message}")
}
}

View File

@@ -160,9 +160,6 @@ class AuthViewModel(
suspend fun verifyIdentity(secret: String): PublicKey? {
try {
val signer = createSigner(secret)
if (secret.startsWith("bunker://")) {
showError("Please approve the connection.")
}
return signer.getPublicKeyAsync()
} catch (e: Exception) {
showError("Error: ${e.message}")