Trim nickname

This commit is contained in:
JC Brand 2019-05-08 21:37:47 +02:00
parent 8283ea3d1a
commit c520a4e39b
2 changed files with 2 additions and 2 deletions

2
dist/converse.js vendored
View File

@ -48439,7 +48439,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
*/
ev.preventDefault();
const nick_el = ev.target.nick;
const nick = nick_el.value;
const nick = nick_el.value.trim();
if (nick) {
this.chatroomview.join(nick);

View File

@ -1964,7 +1964,7 @@ converse.plugins.add('converse-muc-views', {
*/
ev.preventDefault();
const nick_el = ev.target.nick;
const nick = nick_el.value;
const nick = nick_el.value.trim();
if (nick) {
this.chatroomview.join(nick);
this.model.set({