mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-30 00:40:49 +00:00
refactors the use of lud16 and lud06
This commit is contained in:
parent
df378937fe
commit
8bbf308619
@ -69,7 +69,7 @@ class ZapPaymentHandler(val account: Account) {
|
|||||||
} else if (noteEvent is LiveActivitiesEvent && noteEvent.hasHost()) {
|
} else if (noteEvent is LiveActivitiesEvent && noteEvent.hasHost()) {
|
||||||
noteEvent.hosts().map { ZapSplitSetup(it, null, weight = 1.0, false) }
|
noteEvent.hosts().map { ZapSplitSetup(it, null, weight = 1.0, false) }
|
||||||
} else {
|
} else {
|
||||||
val lud16 = note.author?.info?.lud16?.trim() ?: note.author?.info?.lud06?.trim()
|
val lud16 = note.author?.info?.lnAddress()
|
||||||
|
|
||||||
if (lud16.isNullOrBlank()) {
|
if (lud16.isNullOrBlank()) {
|
||||||
onError(
|
onError(
|
||||||
|
Loading…
Reference in New Issue
Block a user