Skip to content

Commit

Permalink
fix: failed to send message blocks thread creation (janhq#2091)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Feb 19, 2024
1 parent e8f5c22 commit 09e210a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/hooks/useSendChatMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ export default function useSendChatMessage() {
const updatedThread: Thread = {
...activeThread,
updated: timestamp,
metadata: {
...(activeThread.metadata ?? {}),
lastMessage: prompt,
},
}

// change last update thread when send message
Expand Down

0 comments on commit 09e210a

Please sign in to comment.