Uses NIP-65 preferably for zap requests.

This commit is contained in:
Vitor Pamplona
2024-05-30 13:51:14 -04:00
parent f81c83326c
commit 4a43b57f79
2 changed files with 32 additions and 2 deletions
@@ -730,8 +730,10 @@ class Account(
note.event?.let { event ->
LnZapRequestEvent.create(
event,
userProfile().latestContactList?.relays()?.keys?.ifEmpty { null }
?: localRelays.map { it.url }.toSet(),
relays =
getNIP65RelayList()?.readRelays()?.toSet()
?: userProfile().latestContactList?.relays()?.keys?.ifEmpty { null }
?: localRelays.map { it.url }.toSet(),
signer,
pollOption,
message,