Skip to content

Commit b511f1d

Browse files
committed
Updates #1896: Use right flag to checked if message is archived
1 parent 1059b30 commit b511f1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/headless/converse-chat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ converse.plugins.add('converse-chat', {
854854
return false;
855855
}
856856
if (attrs.is_markable) {
857-
if (this.contact && !attrs.is_mam && !attrs.is_carbon) {
857+
if (this.contact && !attrs.is_archived && !attrs.is_carbon) {
858858
this.sendMarker(attrs.from, attrs.msgid, 'received');
859859
}
860860
return false;

src/headless/utils/stanza.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function isReceiptRequest (stanza, attrs) {
7676
return (
7777
attrs.sender !== 'me' &&
7878
!attrs.is_carbon &&
79-
!attrs.is_mam &&
79+
!attrs.is_archived &&
8080
sizzle(`request[xmlns="${Strophe.NS.RECEIPTS}"]`, stanza).length
8181
);
8282
}

0 commit comments

Comments
 (0)