diff --git a/amethyst/build.gradle b/amethyst/build.gradle index 44240ba4a..52edfd1e8 100644 --- a/amethyst/build.gradle +++ b/amethyst/build.gradle @@ -16,8 +16,8 @@ android { applicationId "com.vitorpamplona.amethyst" minSdk libs.versions.android.minSdk.get().toInteger() targetSdk libs.versions.android.targetSdk.get().toInteger() - versionCode 397 - versionName "0.90.0" + versionCode 398 + versionName "0.90.1" buildConfigField "String", "RELEASE_NOTES_ID", "\"5d9a4fd0aba7ffefbf989152479237bd182578e58e59eb2fbfe94f6de8011803\"" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/ZapPaymentHandler.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/ZapPaymentHandler.kt index 8489374d3..88b162a2c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/service/ZapPaymentHandler.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/service/ZapPaymentHandler.kt @@ -81,13 +81,15 @@ class ZapPaymentHandler( val lud16 = note.author?.info?.lnAddress() if (lud16.isNullOrBlank()) { - onError( - stringRes(context, R.string.missing_lud16), - stringRes( - context, - R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats, - ), - ) + if (showErrorIfNoLnAddress) { + onError( + stringRes(context, R.string.missing_lud16), + stringRes( + context, + R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats, + ), + ) + } return@withContext } @@ -97,13 +99,15 @@ class ZapPaymentHandler( val lud16 = note.author?.info?.lnAddress() if (lud16.isNullOrBlank()) { - onError( - stringRes(context, R.string.missing_lud16), - stringRes( - context, - R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats, - ), - ) + if (showErrorIfNoLnAddress) { + onError( + stringRes(context, R.string.missing_lud16), + stringRes( + context, + R.string.user_does_not_have_a_lightning_address_setup_to_receive_sats, + ), + ) + } return@withContext }