Call 'clearMessages'

This commit is contained in:
JC Brand 2020-12-16 16:52:31 +01:00
parent 2121766623
commit 594332181b

View File

@ -736,7 +736,7 @@ const ChatRoomMixin = {
async leave (exit_msg) { async leave (exit_msg) {
this.features.destroy(); this.features.destroy();
this.occupants.clearStore(); this.occupants.clearStore();
api.settings.get('muc_clear_messages_on_leave') && this.messages.clearStore(); api.settings.get('muc_clear_messages_on_leave') && this.clearMessages();
const disco_entity = _converse.disco_entities?.get(this.get('jid')); const disco_entity = _converse.disco_entities?.get(this.get('jid'));
if (disco_entity) { if (disco_entity) {