|
754 | 754 | // <gone/> is not applicable within MUC context
|
755 | 755 | return;
|
756 | 756 | }
|
| 757 | + const msgid = _converse.connection.getUniqueId(); |
757 | 758 | _converse.connection.send(
|
758 |
| - $msg({'to':this.model.get('jid'), 'type': 'groupchat'}) |
759 |
| - .c(chat_state, {'xmlns': Strophe.NS.CHATSTATES}).up() |
760 |
| - .c('no-store', {'xmlns': Strophe.NS.HINTS}).up() |
761 |
| - .c('no-permanent-store', {'xmlns': Strophe.NS.HINTS}) |
| 759 | + $msg({ |
| 760 | + 'to':this.model.get('jid'), |
| 761 | + 'id': msgid, |
| 762 | + 'type': 'groupchat' |
| 763 | + }).c(chat_state, {'xmlns': Strophe.NS.CHATSTATES}).up() |
| 764 | + .c('no-store', {'xmlns': Strophe.NS.HINTS}).up() |
| 765 | + .c('no-permanent-store', {'xmlns': Strophe.NS.HINTS}) |
762 | 766 | );
|
763 | 767 | },
|
764 | 768 |
|
|
772 | 776 | text = u.httpToGeoUri(emojione.shortnameToUnicode(text), _converse)
|
773 | 777 | const msgid = _converse.connection.getUniqueId();
|
774 | 778 | const msg = $msg({
|
775 |
| - to: this.model.get('jid'), |
776 |
| - from: _converse.connection.jid, |
777 |
| - type: 'groupchat', |
778 |
| - id: msgid |
| 779 | + 'to': this.model.get('jid'), |
| 780 | + 'from': _converse.connection.jid, |
| 781 | + 'type': 'groupchat', |
| 782 | + 'id': msgid |
779 | 783 | }).c("body").t(text).up()
|
780 | 784 | .c("x", {xmlns: "jabber:x:event"}).c(_converse.COMPOSING);
|
781 | 785 | _converse.connection.send(msg);
|
|
0 commit comments