Commit b511f1d9 authored by JC Brand's avatar JC Brand

Updates #1896: Use right flag to checked if message is archived

parent 1059b306
......@@ -854,7 +854,7 @@ converse.plugins.add('converse-chat', {
return false;
}
if (attrs.is_markable) {
if (this.contact && !attrs.is_mam && !attrs.is_carbon) {
if (this.contact && !attrs.is_archived && !attrs.is_carbon) {
this.sendMarker(attrs.from, attrs.msgid, 'received');
}
return false;
......
......@@ -76,7 +76,7 @@ function isReceiptRequest (stanza, attrs) {
return (
attrs.sender !== 'me' &&
!attrs.is_carbon &&
!attrs.is_mam &&
!attrs.is_archived &&
sizzle(`request[xmlns="${Strophe.NS.RECEIPTS}"]`, stanza).length
);
}
......
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