Merge branch 'main' of interstellardevelopment.org:React-Group/interstellar_ai
This commit is contained in:
commit
90af1ae147
5 changed files with 19 additions and 7 deletions
|
@ -14,6 +14,7 @@ function addMessageToHistory(name: string, message: any): void {
|
|||
};
|
||||
chatHistory.push(newMessage);
|
||||
console.log(`Added message from ${name}: ${message}`);
|
||||
chatHistory.sort((a,b) => b.timestamp - a.timestamp)
|
||||
}
|
||||
|
||||
function removeMessageFromHistory(timestamp: number): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue