From 49f4cc88ed19ae4db25bef8a9aa939dd14ef6761 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Fri, 14 Jun 2024 15:38:45 -0400 Subject: [PATCH] fix usernames being sent --- chatBot/includes/Client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatBot/includes/Client.js b/chatBot/includes/Client.js index 1311d37..2391f2d 100644 --- a/chatBot/includes/Client.js +++ b/chatBot/includes/Client.js @@ -96,7 +96,7 @@ class Client extends EventEmitter { this.currentTopic = messageObj.topic; // Set the current topic from the incoming message const msgType = messageObj.type; - const peerName = messageObj.userName; // Changed from name to userName + const peerName = messageObj.name; const peerAvatar = messageObj.avatar; const timestamp = messageObj.timestamp;