File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
example: export BOOTSTRAP_IGNORE_MODULES="Modal,Dropdown" && make dist
21
21
- New config option [ modtools_disable_query] ( https://conversejs.org/docs/html/configuration.html#modtools-disable-query )
22
22
- New config option [ modtools_disable_assign] ( https://conversejs.org/docs/html/configuration.html#modtools-disable-assign )
23
+ - #1896 : Sending receipts for messages fetched from the archive
23
24
24
25
## 6.0.0 (2020-01-09)
25
26
Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ converse.plugins.add('converse-chat', {
389
389
if ( message ) {
390
390
this . updateMessage ( message , original_stanza ) ;
391
391
} else if (
392
- ! this . handleReceipt ( stanza , from_jid ) &&
392
+ ! this . handleReceipt ( stanza , original_stanza , from_jid ) &&
393
393
! this . handleChatMarker ( stanza , from_jid )
394
394
) {
395
395
if ( this . handleRetraction ( attrs ) ) {
@@ -808,10 +808,10 @@ converse.plugins.add('converse-chat', {
808
808
_converse . api . send ( receipt_stanza ) ;
809
809
} ,
810
810
811
- handleReceipt ( stanza , from_jid ) {
811
+ handleReceipt ( stanza , original_stanza , from_jid ) {
812
812
const is_me = Strophe . getBareJidFromJid ( from_jid ) === _converse . bare_jid ;
813
813
const requests_receipt = sizzle ( `request[xmlns="${ Strophe . NS . RECEIPTS } "]` , stanza ) . pop ( ) !== undefined ;
814
- if ( requests_receipt && ! is_me && ! u . isCarbonMessage ( stanza ) ) {
814
+ if ( requests_receipt && ! is_me && ! u . isCarbonMessage ( stanza ) && ! u . isMAMMessage ( original_stanza ) ) {
815
815
this . sendReceiptStanza ( from_jid , stanza . getAttribute ( 'id' ) ) ;
816
816
}
817
817
const to_bare_jid = Strophe . getBareJidFromJid ( stanza . getAttribute ( 'to' ) ) ;
You can’t perform that action at this time.
0 commit comments