Commit 27a0560a authored by JC Brand's avatar JC Brand

Consistently use . Fixes failing test

parent f24e7c09
...@@ -101,12 +101,10 @@ ...@@ -101,12 +101,10 @@
}, },
onChatBoxesFetched: function (collection, resp) { onChatBoxesFetched: function (collection, resp) {
var _converse = this.__super__._converse;
this.__super__.onChatBoxesFetched.apply(this, arguments); this.__super__.onChatBoxesFetched.apply(this, arguments);
if (!_.includes(_.map(resp, 'id'), 'controlbox')) { if (!_.includes(_.map(collection, 'id'), 'controlbox')) {
this.add({ _converse.addControlBox();
id: 'controlbox',
box_id: 'controlbox'
});
} }
this.get('controlbox').save({connected:true}); this.get('controlbox').save({connected:true});
}, },
......
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