mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user