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;