Kaynağa Gözat

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

JC Brand 4 yıl önce
ebeveyn
işleme
bbcfc9f998
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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);
     },
 
     /**