Commit aec966e3 authored by Christopher Rüprich's avatar Christopher Rüprich Committed by diditopher

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
parent 174f41f2
......@@ -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 {
......
......@@ -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)
......
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