"vscode:/vscode.git/clone" did not exist on "9352cc88840d2d66a7e528f295d668d043e0bb1d"
Commit e1d65065 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 6922529b
......@@ -628,7 +628,9 @@
for (const message of res.messages) {
history.messages[message.id] = {
...history.messages[message.id],
originalContent: history.messages[message.id].content,
...(history.messages[message.id].content !== message.content
? { originalContent: history.messages[message.id].content }
: {}),
...message
};
}
......@@ -913,7 +915,13 @@
if (res !== null) {
// Update chat history with the new messages
for (const message of res.messages) {
history.messages[message.id] = { ...history.messages[message.id], ...message };
history.messages[message.id] = {
...history.messages[message.id],
...(history.messages[message.id].content !== message.content
? { originalContent: history.messages[message.id].content }
: {}),
...message
};
}
}
}
......
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