Commit 3519bfe7 authored by JC Brand's avatar JC Brand

Prevent duplicate minchats element

parent 71add9c0
......@@ -498,6 +498,9 @@ converse.plugins.add('converse-minimize', {
});
function initMinimizedChats () {
if (_converse.minimized_chats) {
_converse.minimized_chats.remove();
}
_converse.minimized_chats = new _converse.MinimizedChats({model: _converse.chatboxes});
/**
* Triggered once the _converse.MinimizedChats instance has been initialized
......
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