fix: failed to send message blocks thread creation (#2091)
This commit is contained in:
parent
e8f5c223b6
commit
09e210af6b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user