File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ socket.on('receive message', message => {
4545// Handling the receiving of chatlog for new connections
4646socket . on ( 'receive chatlog' , messages => {
4747 for ( let i = messages . length - 1 ; i > 0 ; i -- ) { // Go through each message of chatlog from last (oldest) to first (newest)
48- const { id , username, content } = messages [ i ]
48+ const { username, content } = messages [ i ]
4949
5050 // Add message to chatlog
5151 let html = $ ( '.home__container__chat-view__chatlog' ) . html ( )
5252 html += `
5353 <div class="home__container__chat-view__chatlog__message">
54- <strong>${ id } . ${ username } :</strong> ${ content }
54+ <strong>${ username } :</strong> ${ content }
5555 </div>
5656 `
5757 $ ( '.home__container__chat-view__chatlog' ) . html ( html )
You can’t perform that action at this time.
0 commit comments