Explorar o código

__super__ is undefined because it's not an override

JC Brand %!s(int64=7) %!d(string=hai) anos
pai
achega
cf3a33a82e
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/converse-chatboxes.js

+ 1 - 3
src/converse-chatboxes.js

@@ -486,9 +486,7 @@
                      *      that contains the message stanza, if it was
                      *      contained, otherwise it's the message stanza itself.
                      */
-                    const { _converse } = this.__super__,
-                          { __ } = _converse,
-                          archive = sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, original_stanza).pop(),
+                    const archive = sizzle(`result[xmlns="${Strophe.NS.MAM}"]`, original_stanza).pop(),
                           spoiler = sizzle(`spoiler[xmlns="${Strophe.NS.SPOILER}"]`, original_stanza).pop(),
                           delay = sizzle(`delay[xmlns="${Strophe.NS.DELAY}"]`, original_stanza).pop(),
                           chat_state = stanza.getElementsByTagName(_converse.COMPOSING).length && _converse.COMPOSING ||