Skip to content

Commit

Permalink
set store hint on receipts and type='chat'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaosKid42 committed Dec 17, 2018
1 parent 7ec6a05 commit 99ea671
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -9,6 +9,7 @@
- #1376 Fixed some alignment issues in the sidebar
- #1378 Message Delivery Receipts were being sent for carbons and own messages
- #1379 MUC unread messages indicator is failing
- #1382 Message Delivery Receipts: Set store hint and type='chat'

## 4.0.6 (2018-12-07)

Expand Down
5 changes: 4 additions & 1 deletion dist/converse.js
Expand Up @@ -62193,10 +62193,13 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
const receipt_stanza = $msg({
'from': _converse.connection.jid,
'id': _converse.connection.getUniqueId(),
'to': to_jid
'to': to_jid,
'type': 'chat'
}).c('received', {
'xmlns': Strophe.NS.RECEIPTS,
'id': id
}).up().c('store', {
'xmlns': Strophe.NS.HINTS
}).up();

_converse.api.send(receipt_stanza);
Expand Down
4 changes: 3 additions & 1 deletion src/headless/converse-chatboxes.js
Expand Up @@ -729,7 +729,9 @@ converse.plugins.add('converse-chatboxes', {
'from': _converse.connection.jid,
'id': _converse.connection.getUniqueId(),
'to': to_jid,
}).c('received', {'xmlns': Strophe.NS.RECEIPTS, 'id': id}).up();
'type': 'chat',
}).c('received', {'xmlns': Strophe.NS.RECEIPTS, 'id': id}).up()
.c('store', {'xmlns': Strophe.NS.HINTS}).up();
_converse.api.send(receipt_stanza);
},

Expand Down

0 comments on commit 99ea671

Please sign in to comment.