Commit 09b085be authored by JC Brand's avatar JC Brand

muc: no need to override `tearDown`

we already listen for `beforeTearDown` and do what's necessary there.
parent 8125eaed
...@@ -88,13 +88,6 @@ converse.plugins.add('converse-muc', { ...@@ -88,13 +88,6 @@ converse.plugins.add('converse-muc', {
dependencies: ["converse-chatboxes", "converse-chat", "converse-disco", "converse-controlbox"], dependencies: ["converse-chatboxes", "converse-chat", "converse-disco", "converse-controlbox"],
overrides: { overrides: {
tearDown () {
const { _converse } = this.__super__;
const groupchats = this.chatboxes.where({'type': _converse.CHATROOMS_TYPE});
groupchats.forEach(gc => u.safeSave(gc, {'connection_status': converse.ROOMSTATUS.DISCONNECTED}));
this.__super__.tearDown.call(this, arguments);
},
ChatBoxes: { ChatBoxes: {
model (attrs, options) { model (attrs, options) {
const { _converse } = this.__super__; const { _converse } = this.__super__;
......
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