Commit 82b7e284 authored by JC Brand's avatar JC Brand

Use outerHTML to render existing nickname form

parent 60134c4d
......@@ -1722,11 +1722,17 @@ converse.plugins.add('converse-muc-views', {
const container = this.el.querySelector('.muc-bottom-panel');
container.innerHTML = html;
u.addClass('muc-bottom-panel--nickname', container);
} else {
const form = this.el.querySelector('.muc-nickname-form');
if (form) {
sizzle('.spinner', this.el).forEach(u.removeElement);
form.outerHTML = html;
} else {
this.hideChatRoomContents();
const container = this.el.querySelector('.chatroom-body');
container.insertAdjacentHTML('beforeend', html);
}
}
u.safeSave(this.model.session, {'connection_status': converse.ROOMSTATUS.NICKNAME_REQUIRED});
},
......
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