diff --git a/src/utils.js b/src/utils.js index c590a07ed..b3f98e311 100644 --- a/src/utils.js +++ b/src/utils.js @@ -338,9 +338,10 @@ * message, i.e. not a MAM archived one. */ 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 { - return !message.get('archive_id'); + return !message.get('archive_id') && !message.get('delayed'); } };