Explorar el Código

set store hint on receipts and type='chat'

Christoph Scholz hace 6 años
padre
commit
d2d64952a0
Se han modificado 3 ficheros con 8 adiciones y 2 borrados
  1. 1 0
      CHANGES.md
  2. 4 1
      dist/converse.js
  3. 3 1
      src/headless/converse-chatboxes.js

+ 1 - 0
CHANGES.md

@@ -9,6 +9,7 @@
 - #1376 Fixed some alignment issues in the sidebar
 - #1376 Fixed some alignment issues in the sidebar
 - #1378 Message Delivery Receipts were being sent for carbons and own messages
 - #1378 Message Delivery Receipts were being sent for carbons and own messages
 - #1379 MUC unread messages indicator is failing
 - #1379 MUC unread messages indicator is failing
+- #1382 Message Delivery Receipts: Set store hint and type='chat'
 
 
 ## 4.0.6 (2018-12-07)
 ## 4.0.6 (2018-12-07)
 
 

+ 4 - 1
dist/converse.js

@@ -62143,10 +62143,13 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
         const receipt_stanza = $msg({
         const receipt_stanza = $msg({
           'from': _converse.connection.jid,
           'from': _converse.connection.jid,
           'id': _converse.connection.getUniqueId(),
           'id': _converse.connection.getUniqueId(),
-          'to': to_jid
+          'to': to_jid,
+          'type': 'chat'
         }).c('received', {
         }).c('received', {
           'xmlns': Strophe.NS.RECEIPTS,
           'xmlns': Strophe.NS.RECEIPTS,
           'id': id
           'id': id
+        }).up().c('store', {
+          'xmlns': Strophe.NS.HINTS
         }).up();
         }).up();
 
 
         _converse.api.send(receipt_stanza);
         _converse.api.send(receipt_stanza);

+ 3 - 1
src/headless/converse-chatboxes.js

@@ -729,7 +729,9 @@ converse.plugins.add('converse-chatboxes', {
                     'from': _converse.connection.jid,
                     'from': _converse.connection.jid,
                     'id': _converse.connection.getUniqueId(),
                     'id': _converse.connection.getUniqueId(),
                     'to': to_jid,
                     '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);
                 _converse.api.send(receipt_stanza);
             },
             },