Commit 502b9225 authored by JC Brand's avatar JC Brand

Only show the controlbox after attaching. Updates #41.

parent f96c52a0
......@@ -2673,9 +2673,6 @@
e.preventDefault(); this.toggleControlBox();
}, this)
);
if (this.show_controlbox_by_default) {
this.toggleControlBox();
}
if (this.prebind) {
if (!this.connection) {
if ((!this.jid) || (!this.sid) || (!this.rid) || (!this.bosh_service_url)) {
......@@ -2688,6 +2685,7 @@
this.onConnected();
}
}
if (this.show_controlbox_by_default) { this.showControlBox(); }
};
return {
'initialize': function (settings) {
......
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