Fixes single click login screen

This commit is contained in:
Vitor Pamplona
2023-11-19 17:45:00 -05:00
parent b1cfa2219d
commit d4ed6661dd
2 changed files with 6 additions and 3 deletions
@@ -152,7 +152,7 @@ class ExternalSignerLauncher(
}
fun decrypt(encryptedContent: String, pubKey: HexKey, signerType: SignerType = SignerType.NIP04_DECRYPT, onReady: (String)-> Unit) {
val id = (encryptedContent + pubKey).hashCode().toString()
val id = (encryptedContent + pubKey + onReady.toString()).hashCode().toString()
val result = getDataFromResolver(signerType, arrayOf(encryptedContent, pubKey))
if (result == null) {
openSignerApp(
@@ -168,7 +168,7 @@ class ExternalSignerLauncher(
}
fun encrypt(decryptedContent: String, pubKey: HexKey, signerType: SignerType = SignerType.NIP04_ENCRYPT, onReady: (String)-> Unit) {
val id = (decryptedContent + pubKey).hashCode().toString()
val id = (decryptedContent + pubKey + onReady.toString()).hashCode().toString()
val result = getDataFromResolver(signerType, arrayOf(decryptedContent, pubKey))
if (result == null) {
openSignerApp(