Explorar o código

chatboxviews: Remove ineffectual override

`initStatus` is no longer on the `_converse` object, so the override
wasn't being applied and chat boxes get closed when the
`clearSession` event fires.
JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
8125eaed57
Modificáronse 1 ficheiros con 0 adicións e 13 borrados
  1. 0 13
      src/converse-chatboxviews.js

+ 0 - 13
src/converse-chatboxviews.js

@@ -45,19 +45,6 @@ converse.plugins.add('converse-chatboxviews', {
 
     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 () {
         /* The initialize function gets called as soon as the plugin is