Commit 8de55ce6 authored by JC Brand's avatar JC Brand

Updates #2087. Only initialize minimized chats once

(i.e. not on reconnection)
parent 99195ffd
......@@ -538,7 +538,7 @@ converse.plugins.add('converse-minimize', {
/************************ BEGIN Event Handlers ************************/
api.listen.on('chatBoxInsertedIntoDOM', view => _converse.chatboxviews.trimChats(view));
api.listen.on('statusInitialized', () => initMinimizedChats());
api.listen.on('connected', () => initMinimizedChats());
api.listen.on('controlBoxOpened', view => _converse.chatboxviews.trimChats(view));
api.listen.on('chatBoxViewInitialized', v => v.listenTo(v.model, 'change:minimized', v.onMinimizedChanged));
......
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