Commit c520a4e3 authored by JC Brand's avatar JC Brand

Trim nickname

parent 8283ea3d
...@@ -48439,7 +48439,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins ...@@ -48439,7 +48439,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
*/ */
ev.preventDefault(); ev.preventDefault();
const nick_el = ev.target.nick; const nick_el = ev.target.nick;
const nick = nick_el.value; const nick = nick_el.value.trim();
if (nick) { if (nick) {
this.chatroomview.join(nick); this.chatroomview.join(nick);
...@@ -1964,7 +1964,7 @@ converse.plugins.add('converse-muc-views', { ...@@ -1964,7 +1964,7 @@ converse.plugins.add('converse-muc-views', {
*/ */
ev.preventDefault(); ev.preventDefault();
const nick_el = ev.target.nick; const nick_el = ev.target.nick;
const nick = nick_el.value; const nick = nick_el.value.trim();
if (nick) { if (nick) {
this.chatroomview.join(nick); this.chatroomview.join(nick);
this.model.set({ this.model.set({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment