fix: include event pointer when zapping chat messages

Pass the message event as eventPointer when opening ZapWindow from
chat context menu. This enables:
- Event preview in the zap window
- Proper window title showing "Zap [username]"
This commit is contained in:
Claude
2026-01-19 10:07:47 +00:00
parent cbd45eb192
commit 4438187326

View File

@@ -155,6 +155,8 @@ export function ChatMessageContextMenu({
recipientPubkey: zapConfig.recipientPubkey,
customTags: zapConfig.customTags,
relays: zapConfig.relays,
// Include the message event as context for zap preview
eventPointer: { id: event.id, author: event.pubkey },
});
};