From 502b9225150e5015b9f6f401c76045e9f72f45f5 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 24 Aug 2013 02:29:13 +0200 Subject: [PATCH] Only show the controlbox after attaching. Updates #41. --- converse.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/converse.js b/converse.js index f4cfa6c31..450cd3deb 100644 --- a/converse.js +++ b/converse.js @@ -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) {