Clear old modals upon logout

This commit is contained in:
JC Brand 2018-08-21 18:27:43 +02:00
parent 3ec426e11d
commit 0339c59390

View File

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