Don't remove the minimized chats element upon logout
This commit is contained in:
parent
33cfe07331
commit
5e320d031d
@ -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);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user