Fixes #1558, this.get is not a function

This commit is contained in:
JC Brand 2019-05-13 14:35:55 +02:00
parent 3e0361ca65
commit 7a990ae0b9
2 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@
- #1532: Converse reloads on enter pressed in the filter box
- #1550: Legitimate carbons being blocked due to erroneous forgery check
- #1554: Room auto-configuration broke if the config form contained fields with type `fixed`
- #1558: `this.get` is not a function error when `forward_messages` is set to `true`.
- **Breaking changes**:
- Rename `muc_disable_moderator_commands` to [muc_disable_slash_commands](https://conversejs.org/docs/html/configuration.html#muc-disable-slash-commands).

View File

@ -1792,11 +1792,11 @@ _converse.api = {
_converse.connection.send(
$msg({
'to': _converse.bare_jid,
'type': this.get('message_type'),
'type': stanza.getAttribute('type'),
}).c('forwarded', {'xmlns': Strophe.NS.FORWARD})
.c('delay', {
'xmns': Strophe.NS.DELAY,
'stamp': (new Date()).toISOString()
'xmns': Strophe.NS.DELAY,
'stamp': (new Date()).toISOString()
}).up()
.cnode(stanza.tree())
);