Removes invisible whitespace characters from username in chat

This commit is contained in:
Saptak S 2021-11-19 15:25:10 +05:30
parent 24390f97ee
commit b525a190e9
2 changed files with 8 additions and 5 deletions

View file

@ -9,7 +9,7 @@ $(function () {
);
// Store current username received from app context
var current_username = $('#username').val();
var current_username = $('#username').val().trim();
// Triggered on any status change by any user, such as some
// user joined, or changed username, or left, etc.