Use kind 15 to send images in DMs

This commit is contained in:
Jon Staab
2025-06-03 16:46:30 -07:00
parent 55efb3fdfd
commit 43b207c4dc
5 changed files with 88 additions and 16 deletions
+4 -1
View File
@@ -29,6 +29,7 @@ import {
REACTION,
ZAP_RESPONSE,
DIRECT_MESSAGE,
DIRECT_MESSAGE_FILE,
GROUP_META,
MESSAGE,
GROUPS,
@@ -413,7 +414,9 @@ export const {
// Chats
export const chatMessages = deriveEvents(repository, {filters: [{kinds: [DIRECT_MESSAGE]}]})
export const chatMessages = deriveEvents(repository, {
filters: [{kinds: [DIRECT_MESSAGE, DIRECT_MESSAGE_FILE]}],
})
export type Chat = {
id: string