Commit 49d58d32 authored by JC Brand's avatar JC Brand

Fix timing bug with minimized_chats not being available in time

parent eff23356
......@@ -40,6 +40,13 @@
return this;
},
onConnected: function () {
converse.minimized_chats = new converse.MinimizedChats({
model: converse.chatboxes
});
this._super.onConnected.apply(this, arguments);
},
registerGlobalEventHandlers: function () {
this._super.registerGlobalEventHandlers.apply(this, arguments);
......@@ -352,12 +359,6 @@
}
});
var onLogin = function () {
converse.minimized_chats = new converse.MinimizedChats({
model: converse.chatboxes
});
};
converse.on('ready', onLogin);
converse.on('controlBoxOpened', function (evt, chatbox) {
// Wrapped in anon method because at scan time, chatboxviews
// attr not set yet.
......
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