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

This commit is contained in:
JC Brand 2015-05-31 14:46:12 +02:00
parent bf61122805
commit f4edf75c72

View File

@ -3159,6 +3159,11 @@
this.fetch({
add: true,
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')) {
this.add({
id: 'controlbox',