|
@@ -45,19 +45,6 @@ converse.plugins.add('converse-chatboxviews', {
|
|
|
|
|
|
dependencies: ["converse-chatboxes", "converse-vcard"],
|
|
dependencies: ["converse-chatboxes", "converse-vcard"],
|
|
|
|
|
|
- overrides: {
|
|
|
|
- // Overrides mentioned here will be picked up by converse.js's
|
|
|
|
- // plugin architecture they will replace existing methods on the
|
|
|
|
- // relevant objects or classes.
|
|
|
|
-
|
|
|
|
- initStatus: function (reconnecting) {
|
|
|
|
- const { _converse } = this.__super__;
|
|
|
|
- if (!reconnecting && _converse.chatboxviews) {
|
|
|
|
- _converse.chatboxviews.closeAllChatBoxes();
|
|
|
|
- }
|
|
|
|
- return this.__super__.initStatus.apply(this, arguments);
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
|
|
initialize () {
|
|
initialize () {
|
|
/* The initialize function gets called as soon as the plugin is
|
|
/* The initialize function gets called as soon as the plugin is
|