mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
wip kind 14/15 within nip17 seal for attachments
This commit is contained in:
1 parent
5d8a4d4ace
commit
7a52562926
3 files changed
+48
-4
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user