Update chat.js

This commit is contained in:
Prajith Kesava Prasad 2020-10-05 21:39:27 +05:30 committed by GitHub
parent 073d15070b
commit 29ed049206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -768,9 +768,8 @@ chatInput.addEventListener("keypress", function (event) {
if (isEmptyOrSpaces(msg) == false) {
dataChanel.send("mes:" + msg);
addMessageToScreen(msg, true);
}
// Add message to screen
}
// Auto scroll chat down
chatZone.scrollTop(chatZone[0].scrollHeight);
// Clear chat input