Skip to content

Commit 1461093

Browse files
deleolajidejcbrand
authored andcommitted
Fix issue 1896 (#1897)
* fix issue #1896 * Added issue to CHANGES.md
1 parent 8cc5eca commit 1461093

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGES.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22

33
## 6.0.1 (2020-02-13)
44

5-
- Bugfix. Handle stanza that clears the MUC subject
65
- #1313: Stylistic improvements to the send button
76
- #1793: Send button doesn't appear in Firefox in 1:1 chats
8-
- #1822: Don't log error if user has no bookmarks
97
- #1820: Set focus on jid field after controlbox is loaded
8+
- #1822: Don't log error if user has no bookmarks
109
- #1823: New config options [muc_roomid_policy](https://conversejs.org/docs/html/configuration.html#muc-roomid-policy)
1110
and [muc_roomid_policy_hint](https://conversejs.org/docs/html/configuration.html#muc-roomid-policy-hint)
1211
- #1826: A user can now add himself as a contact
12+
- #1839: Headline messages are shown in controlbox
13+
- #1896: Don't send receipts for messages fetched from the archive
14+
- Bugfix. Handle stanza that clears the MUC subject
15+
- Allow ignore bootstrap modules at build using environment variable: BOOTSTRAP_IGNORE_MODULES="Modal,Dropdown".
16+
example: export BOOTSTRAP_IGNORE_MODULES="Modal,Dropdown" && make dist
17+
- New config option [modtools_disable_query](https://conversejs.org/docs/html/configuration.html#modtools-disable-query)
18+
- New config option [modtools_disable_assign](https://conversejs.org/docs/html/configuration.html#modtools-disable-assign)
1319

1420
## 6.0.0 (2020-01-09)
1521

src/headless/converse-chat.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ converse.plugins.add('converse-chat', {
367367
if (message) {
368368
this.updateMessage(message, original_stanza);
369369
} else if (
370-
!this.handleReceipt (stanza, from_jid) &&
370+
!this.handleReceipt (stanza, original_stanza, from_jid) &&
371371
!this.handleChatMarker(stanza, from_jid)
372372
) {
373373
const attrs = await this.getMessageAttributesFromStanza(stanza, original_stanza);
@@ -774,10 +774,10 @@ converse.plugins.add('converse-chat', {
774774
_converse.api.send(receipt_stanza);
775775
},
776776

777-
handleReceipt (stanza, from_jid) {
777+
handleReceipt (stanza, original_stanza, from_jid) {
778778
const is_me = Strophe.getBareJidFromJid(from_jid) === _converse.bare_jid;
779779
const requests_receipt = sizzle(`request[xmlns="${Strophe.NS.RECEIPTS}"]`, stanza).pop() !== undefined;
780-
if (requests_receipt && !is_me && !u.isCarbonMessage(stanza)) {
780+
if (requests_receipt && !is_me && !u.isCarbonMessage(stanza) && !u.isMAMMessage(original_stanza)) {
781781
this.sendReceiptStanza(from_jid, stanza.getAttribute('id'));
782782
}
783783
const to_bare_jid = Strophe.getBareJidFromJid(stanza.getAttribute('to'));

0 commit comments

Comments
 (0)