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

This commit is contained in:
JC Brand 2018-05-01 19:46:18 +02:00
parent 0e61eda620
commit afc924fd72

View File

@ -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) {