Clear old modals upon logout
This commit is contained in:
parent
3ec426e11d
commit
0339c59390
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user