Commit 3290d665 authored by JC Brand's avatar JC Brand

Bugfix. validation message should be set on the model

parent 969f902d
......@@ -54869,9 +54869,10 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
if (!this.nickname_form) {
this.nickname_form = new _converse.MUCNicknameForm({
'model': new Backbone.Model(),
'chatroomview': this,
'validation_message': message
'model': new Backbone.Model({
'validation_message': message
}),
'chatroomview': this
});
const container_el = this.el.querySelector('.chatroom-body');
container_el.insertAdjacentElement('beforeend', this.nickname_form.el);
......@@ -1342,9 +1342,8 @@ converse.plugins.add('converse-muc-views', {
this.hideChatRoomContents();
if (!this.nickname_form) {
this.nickname_form = new _converse.MUCNicknameForm({
'model': new Backbone.Model(),
'model': new Backbone.Model({'validation_message': message}),
'chatroomview': this,
'validation_message': message
});
const container_el = this.el.querySelector('.chatroom-body');
container_el.insertAdjacentElement('beforeend', this.nickname_form.el);
......
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