wip kind 14/15 within nip17 seal for attachments

This commit is contained in:
sam committed 2025-10-19 19:57:40 +07:00
1 parent 5d8a4d4ace
commit 7a52562926
3 files changed
+48 -4

No files matched your search

+4 -1
View File
@@ -151,8 +151,11 @@ export function useSendDM(): UseSendDMReturn {
...createImetaTags(attachments)
];
// Use kind 15 for messages with file attachments, kind 14 for text-only
const messageKind = (attachments && attachments.length > 0) ? 15 : 14;
const privateMessage: Omit<NostrEvent, 'id' | 'sig'> = {
kind: 14,
kind: messageKind,
pubkey: user.pubkey,
created_at: now,
tags,