"test/ut/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "0850ddd6a26c2f78250cfe115dcd4df2645673ba"
Commit ce4973be authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: unfinished chat load error

parent edac6f4d
...@@ -236,6 +236,9 @@ ...@@ -236,6 +236,9 @@
const loadChat = async (id) => { const loadChat = async (id) => {
const chat = await db.get('chats', id); const chat = await db.get('chats', id);
if (chatId !== chat.id) { if (chatId !== chat.id) {
if (chat.messages.length > 0) {
chat.messages.at(-1).done = true;
}
messages = chat.messages; messages = chat.messages;
title = chat.title; title = chat.title;
chatId = chat.id; chatId = chat.id;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment