2
0
Эх сурвалжийг харах

Bugfix. Since refactoring we do want `onMessage` to handle MAM messages

JC Brand 7 жил өмнө
parent
commit
afc924fd72
1 өөрчлөгдсөн 0 нэмэгдсэн , 10 устгасан
  1. 0 10
      src/converse-mam.js

+ 0 - 10
src/converse-mam.js

@@ -271,16 +271,6 @@
 
             ChatRoom: {
 
-                onMessage (stanza) {
-                    /* MAM (message archive management XEP-0313) messages are
-                     * ignored, since they're handled separately.
-                     */
-                    if (sizzle(`[xmlns="${Strophe.NS.MAM}"]`, stanza).length > 0) {
-                        return true;
-                    }
-                    return this.__super__.onMessage.apply(this, arguments);
-                },
-
                 isDuplicate (message, original_stanza) {
                     const result = this.__super__.isDuplicate.apply(this, arguments);
                     if (result) {