Fix undefined chat draft key

This commit is contained in:
Jon Staab
2026-05-06 16:56:31 -07:00
parent 3833cb093d
commit 8f56812dd1
2 changed files with 5 additions and 8 deletions
+1 -5
View File
@@ -560,11 +560,7 @@ export const chatsById = call(() => {
})
})
export const deriveChat = call(() => {
const _deriveChat = makeDeriveItem(chatsById)
return (pubkeys: string[]) => _deriveChat(makeChatId(pubkeys))
})
export const deriveChat = makeDeriveItem(chatsById)
export const chatSearch = derived(throttled(1500, chatsById), $chatsByPubkey => {
return createSearch(