From 9373fa8e593e8763fa15a116c837cc4b3922faff Mon Sep 17 00:00:00 2001 From: YasinOnm08 Date: Thu, 3 Oct 2024 13:32:27 +0200 Subject: [PATCH] lol --- app/backend/ChatHistory.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/backend/ChatHistory.ts b/app/backend/ChatHistory.ts index 62c9a50..8d768ed 100644 --- a/app/backend/ChatHistory.ts +++ b/app/backend/ChatHistory.ts @@ -6,7 +6,7 @@ type ChatMessage = { let chatHistory: ChatMessage[] = []; -function addMessageHistory(name: string, message: any): void { +function addMessageToHistory(name: string, message: any): void { const newMessage: ChatMessage = { name: name, messages: message, @@ -16,7 +16,7 @@ function addMessageHistory(name: string, message: any): void { console.log(`Added message from ${name}: ${message}`); } -function removeMessageHistory(timestamp: number): void { +function removeMessageFromHistory(timestamp: number): void { const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp); if (index > -1) { chatHistory.splice(index, 1);