Commit 0339c593 authored by JC Brand's avatar JC Brand

Clear old modals upon logout

parent 3ec426e1
...@@ -65,6 +65,13 @@ ...@@ -65,6 +65,13 @@
} }
}); });
_converse.api.listen.on('afterTearDown', () => {
const container = _converse.chatboxviews.el.querySelector("#converse-modals");
if (container) {
container.innerHTML = '';
}
});
/************************ BEGIN API ************************/ /************************ BEGIN API ************************/
// We extend the default converse.js API to add methods specific to MUC chat rooms. // We extend the default converse.js API to add methods specific to MUC chat rooms.
......
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