refactors the use of lud16 and lud06

This commit is contained in:
Vitor Pamplona 2024-04-17 11:14:03 -04:00
parent df378937fe
commit 8bbf308619

View File

@ -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(