Don't send msg to chatbox when scrolled back

This commit is contained in:
Vortrex
2021-10-25 12:56:21 -05:00
parent 34a7812dce
commit c615447a3b

View File

@@ -46,10 +46,12 @@ function unBindChatBoxKeys() {
// ===========================================================================
function receiveChatBoxMessageFromServer(messageString, colour) {
if(bottomMessageIndex => chatBoxHistory.length-1) {
message(messageString, colour);
addToChatBoxHistory(messageString, colour);
bottomMessageIndex = chatBoxHistory.length-1;
}
addToChatBoxHistory(messageString, colour);
}
// ===========================================================================