fix: timestamp missing in edited user message

This commit is contained in:
Timothy Jaeryang Baek 2025-03-03 20:21:39 -08:00
parent e628bfe6ff
commit 1236157800

View File

@ -228,7 +228,8 @@
role: 'user',
content: userPrompt,
...(history.messages[messageId].files && { files: history.messages[messageId].files }),
models: selectedModels
models: selectedModels,
timestamp: Math.floor(Date.now() / 1000) // Unix epoch
};
let messageParentId = history.messages[messageId].parentId;