diff --git a/src/lib/chat/adapters/nip-10-adapter.ts b/src/lib/chat/adapters/nip-10-adapter.ts index 07b8959..ffc33b3 100644 --- a/src/lib/chat/adapters/nip-10-adapter.ts +++ b/src/lib/chat/adapters/nip-10-adapter.ts @@ -847,7 +847,7 @@ export class Nip10Adapter extends ChatProtocolAdapter { private eventToMessage( event: NostrEvent, conversationId: string, - rootEventId: string, + _rootEventId: string, ): Message | null { // Handle zap receipts (kind 9735) if (event.kind === 9735) { @@ -867,14 +867,12 @@ export class Nip10Adapter extends ChatProtocolAdapter { let replyTo: string | undefined; if (refs.reply?.e) { - // Replying to another reply + // Replying to another reply - show reply preview replyTo = refs.reply.e.id; - } else if (refs.root?.e) { - // Replying directly to root - replyTo = refs.root.e.id; } else { - // Malformed or legacy reply - assume replying to root - replyTo = rootEventId; + // Replying directly to root or malformed - don't show reply preview + // (replying to root is implied in thread chat context) + replyTo = undefined; } return { diff --git a/tsconfig.node.tsbuildinfo b/tsconfig.node.tsbuildinfo index 5e39d3d..75ea001 100644 --- a/tsconfig.node.tsbuildinfo +++ b/tsconfig.node.tsbuildinfo @@ -1 +1 @@ -{"root":["./vite.config.ts"],"errors":true,"version":"5.9.3"} \ No newline at end of file +{"root":["./vite.config.ts"],"version":"5.6.3"} \ No newline at end of file