Commit f4edf75c authored by JC Brand's avatar JC Brand

Bugfix. Fetched chat boxes weren't being shown automatically.

parent bf611228
...@@ -3159,6 +3159,11 @@ ...@@ -3159,6 +3159,11 @@
this.fetch({ this.fetch({
add: true, add: true,
success: $.proxy(function (collection, resp) { success: $.proxy(function (collection, resp) {
collection.each(function (chatbox) {
if (chatbox.get('id') !== 'controlbox' && !chatbox.get('minimized')) {
chatbox.trigger('show');
}
});
if (!_.include(_.pluck(resp, 'id'), 'controlbox')) { if (!_.include(_.pluck(resp, 'id'), 'controlbox')) {
this.add({ this.add({
id: 'controlbox', id: 'controlbox',
......
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