refactor: let createZapRequest collect relays from both authors

Remove top-level relays from NIP-53 zapConfig so createZapRequest
can automatically collect outbox relays from both:
- eventPointer.author (message author / zap recipient)
- addressPointer.pubkey (stream host)

The relay hints in the pointers are still included via the
existing logic in createZapRequest.
This commit is contained in:
Claude
2026-01-19 11:00:46 +00:00
parent 86460c6c6b
commit dd85dcf2b5

View File

@@ -603,12 +603,14 @@ export class Nip53Adapter extends ChatProtocolAdapter {
relays,
};
// Don't pass top-level relays - let createZapRequest collect outbox relays
// from both eventPointer.author (recipient) and addressPointer.pubkey (stream host)
// The relay hints in the pointers will also be included
return {
supported: true,
recipientPubkey: message.author,
eventPointer,
addressPointer,
relays,
};
}