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,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;
}
// ===========================================================================