Don't remove the minimized chats element upon logout

This commit is contained in:
JC Brand 2018-02-22 13:30:58 +01:00
parent 33cfe07331
commit 5e320d031d

View File

@ -536,7 +536,6 @@
const new_html = tpl_chatbox_minimize( const new_html = tpl_chatbox_minimize(
{info_minimize: __('Minimize this chat box')} {info_minimize: __('Minimize this chat box')}
); );
const el = view.el.querySelector('.toggle-chatbox-button'); const el = view.el.querySelector('.toggle-chatbox-button');
if (el) { if (el) {
el.outerHTML = new_html; el.outerHTML = new_html;
@ -553,11 +552,6 @@
_converse.chatboxviews.trimChats(chatbox); _converse.chatboxviews.trimChats(chatbox);
} }
}); });
const logOut = function () {
_converse.minimized_chats.remove();
};
_converse.on('logout', logOut);
} }
}); });
})); }));