From 8de55ce68413fe412ff5b5baf24ce81da3e078b9 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 9 Jul 2020 22:11:04 +0200 Subject: [PATCH] Updates #2087. Only initialize minimized chats once (i.e. not on reconnection) --- src/converse-minimize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-minimize.js b/src/converse-minimize.js index 0ce568f0e..b97cfeecf 100644 --- a/src/converse-minimize.js +++ b/src/converse-minimize.js @@ -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));