Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai>
This commit is contained in:
parent
f2a6e2951e
commit
771f445a6a
@ -103,9 +103,13 @@ export const useCreateNewThread = () => {
|
||||
|
||||
function updateThreadMetadata(thread: Thread) {
|
||||
updateThread(thread)
|
||||
extensionManager
|
||||
.get<ConversationalExtension>(ExtensionType.Conversational)
|
||||
?.saveThread(thread)
|
||||
const threadState = threadStates[thread.id]
|
||||
const isFinishInit = threadState?.isFinishInit ?? true
|
||||
if (isFinishInit) {
|
||||
extensionManager
|
||||
.get<ConversationalExtension>(ExtensionType.Conversational)
|
||||
?.saveThread(thread)
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user