fix: failed to send message blocks thread creation (#2091)

This commit is contained in:
Louis 2024-02-19 20:08:36 +07:00 committed by GitHub
parent e8f5c223b6
commit 09e210af6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -297,6 +297,10 @@ export default function useSendChatMessage() {
const updatedThread: Thread = { const updatedThread: Thread = {
...activeThread, ...activeThread,
updated: timestamp, updated: timestamp,
metadata: {
...(activeThread.metadata ?? {}),
lastMessage: prompt,
},
} }
// change last update thread when send message // change last update thread when send message