From ffc0a7c6edd944479d27ea551c7fb827e4e20729 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 19 Mar 2024 17:44:51 -0400 Subject: [PATCH] Avoids showing error machine-level details when paying for zaps on external wallets --- .../vitorpamplona/amethyst/ui/note/ZapCustomDialog.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ZapCustomDialog.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ZapCustomDialog.kt index 77581d245..ae411dee6 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ZapCustomDialog.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ZapCustomDialog.kt @@ -444,11 +444,12 @@ fun payViaIntent( ContextCompat.startActivity(context, intent, null) } catch (e: Exception) { if (e is CancellationException) throw e - if (e.message != null) { - onError(context.getString(R.string.no_wallet_found_with_error, e.message!!)) - } else { - onError(context.getString(R.string.no_wallet_found)) - } + // don't display ugly error messages + // if (e.message != null) { + // onError(context.getString(R.string.no_wallet_found_with_error, e.message!!)) + // } else { + onError(context.getString(R.string.no_wallet_found)) + // } } }