Explorar o código

Bugfix. 2nd parameter for `api.hook` is the context

JC Brand %!s(int64=4) %!d(string=hai) anos
pai
achega
bbcfc9f998
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/utils/stanza.js

+ 1 - 1
src/headless/utils/stanza.js

@@ -685,7 +685,7 @@ const st = {
          * *Hook* which allows plugins to add additional parsing
          * @event _converse#parseMUCMessage
          */
-        return api.hook('parseMUCMessage', attrs);
+        return api.hook('parseMUCMessage', stanza, attrs);
     },
 
     /**