Support for login with hex key when using amber

This commit is contained in:
greenart7c3
2024-10-07 08:50:06 -03:00
parent 38a9030963
commit baa9ee0562
@@ -109,7 +109,12 @@ class AccountStateViewModel : ViewModel() {
is Nip19Bech32.NEmbed -> null
is Nip19Bech32.NRelay -> null
is Nip19Bech32.NAddress -> null
else -> null
else ->
try {
if (loginWithExternalSigner) Hex.decode(key) else null
} catch (e: Exception) {
null
}
}
if (loginWithExternalSigner && pubKeyParsed == null) {