Also take delayed messages into account when checking if new
This commit is contained in:
parent
3a6f7ed109
commit
8bdaa410db
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user