fix usernames being sent

This commit is contained in:
Raven Scott 2024-06-14 15:38:45 -04:00
parent 66ae839318
commit 49f4cc88ed

View File

@ -96,7 +96,7 @@ class Client extends EventEmitter {
this.currentTopic = messageObj.topic; // Set the current topic from the incoming message this.currentTopic = messageObj.topic; // Set the current topic from the incoming message
const msgType = messageObj.type; const msgType = messageObj.type;
const peerName = messageObj.userName; // Changed from name to userName const peerName = messageObj.name;
const peerAvatar = messageObj.avatar; const peerAvatar = messageObj.avatar;
const timestamp = messageObj.timestamp; const timestamp = messageObj.timestamp;