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) {
|
function updateThreadMetadata(thread: Thread) {
|
||||||
updateThread(thread)
|
updateThread(thread)
|
||||||
extensionManager
|
const threadState = threadStates[thread.id]
|
||||||
.get<ConversationalExtension>(ExtensionType.Conversational)
|
const isFinishInit = threadState?.isFinishInit ?? true
|
||||||
?.saveThread(thread)
|
if (isFinishInit) {
|
||||||
|
extensionManager
|
||||||
|
.get<ConversationalExtension>(ExtensionType.Conversational)
|
||||||
|
?.saveThread(thread)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user