fix: currentChat not being updated

This commit is contained in:
HyperBlaze
2024-12-06 11:24:45 -08:00
parent f652400a1b
commit c45eed40af

View File

@@ -788,6 +788,8 @@ export async function sendChat(chatProcessIndex = -1,arg:{
currentTokens = sp.currentTokens
currentChat.hypaV2Data = sp.memory ?? currentChat.hypaV2Data
DBState.db.characters[selectedChar].chats[selectedChat].hypaV2Data = currentChat.hypaV2Data
currentChat = DBState.db.characters[selectedChar].chats[selectedChat];
console.log("Current chat's HypaV2Data: ", currentChat.hypaV2Data)
}
else{