diff --git a/scripts/client/chatbox.js b/scripts/client/chatbox.js index a014badc..37526c4b 100644 --- a/scripts/client/chatbox.js +++ b/scripts/client/chatbox.js @@ -46,9 +46,11 @@ function unBindChatBoxKeys() { // =========================================================================== function receiveChatBoxMessageFromServer(messageString, colour) { - message(messageString, colour); + if(bottomMessageIndex => chatBoxHistory.length-1) { + message(messageString, colour); + bottomMessageIndex = chatBoxHistory.length-1; + } addToChatBoxHistory(messageString, colour); - bottomMessageIndex = chatBoxHistory.length-1; } // ===========================================================================