Commit 8bdaa410 authored by JC Brand's avatar JC Brand

Also take delayed messages into account when checking if new

parent 3a6f7ed1
...@@ -338,9 +338,10 @@ ...@@ -338,9 +338,10 @@
* message, i.e. not a MAM archived one. * message, i.e. not a MAM archived one.
*/ */
if (message instanceof Element) { if (message instanceof Element) {
return !(sizzle('result[xmlns="'+Strophe.NS.MAM+'"]', message).length); return !sizzle('result[xmlns="'+Strophe.NS.MAM+'"]', message).length &&
!sizzle('delay[xmlns="'+Strophe.NS.DELAY+'"]', message).length;
} else { } else {
return !message.get('archive_id'); return !message.get('archive_id') && !message.get('delayed');
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment