Commit 073a95b7 authored by JC Brand's avatar JC Brand

Avoid visibility transience and fix failing test

parent fbdbea22
......@@ -245,6 +245,11 @@
this.render();
if (this.model.get('connected')) {
this.insertRoster();
}
},
render: function () {
if (this.model.get('connected')) {
if (_.isUndefined(this.model.get('closed'))) {
this.model.set('closed', !_converse.show_controlbox_by_default);
}
......@@ -254,9 +259,6 @@
} else {
this.hide();
}
},
render: function () {
this.$el.html(_converse.templates.controlbox(
_.extend(this.model.toJSON(), {
sticky_controlbox: _converse.sticky_controlbox
......
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