fix: use EventPointer for repost replyTo in NIP-10 adapter

Apply the same relay hints fix to the repostToMessage function that was
added in a recent main commit.
This commit is contained in:
Claude
2026-01-22 15:23:13 +00:00
parent 5918fe59d5
commit 259f4b55c9

View File

@@ -943,9 +943,11 @@ export class Nip10Adapter extends ChatProtocolAdapter {
repostEvent: NostrEvent,
conversationId: string,
): Message {
// Find what event is being reposted (e-tag)
// Find what event is being reposted (e-tag) - use full pointer with relay hints
const eTag = repostEvent.tags.find((t) => t[0] === "e");
const replyTo = eTag?.[1];
const replyTo = eTag
? (getEventPointerFromETag(eTag) ?? undefined)
: undefined;
return {
id: repostEvent.id,