Fix for issue #261

When converse is first initialized this.model.get('closed') is undefined, at least with some configurations. This patch initializes the attribute with !show_controlbox_by_default if it is undefined.

Update CHANGES.md

fix make check

Update CHANGES.md
This commit is contained in:
Christopher Rüprich 2016-02-11 01:23:50 +01:00 committed by diditopher
parent 174f41f298
commit aec966e36a
2 changed files with 4 additions and 0 deletions

View File

@ -2555,6 +2555,9 @@
if (this.model.get('connected')) {
this.initRoster();
}
if (typeof this.model.get('closed')==='undefined') {
this.model.set('closed', !converse.show_controlbox_by_default);
}
if (!this.model.get('closed')) {
this.show();
} else {

View File

@ -2,6 +2,7 @@
## 0.10.2 (Unreleased)
- #261 show_controlbox_by_default config not working [diditopher]
- #573 xgettext build error: `'javascript' unknown`
## 0.10.1 (2016-02-06)