Removes invisible whitespace characters from username in chat

This commit is contained in:
Saptak S 2021-11-19 15:25:10 +05:30
parent 092cbc12ce
commit 2a68b5bce1
No known key found for this signature in database
GPG key ID: 7B7F1772C0C6FCBF
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.