Skip to content

Commit 7a990ae

Browse files
committed
Fixes #1558, this.get is not a function
1 parent 3e0361c commit 7a990ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- #1532: Converse reloads on enter pressed in the filter box
1818
- #1550: Legitimate carbons being blocked due to erroneous forgery check
1919
- #1554: Room auto-configuration broke if the config form contained fields with type `fixed`
20+
- #1558: `this.get` is not a function error when `forward_messages` is set to `true`.
2021

2122
- **Breaking changes**:
2223
- Rename `muc_disable_moderator_commands` to [muc_disable_slash_commands](https://conversejs.org/docs/html/configuration.html#muc-disable-slash-commands).

src/headless/converse-core.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1792,11 +1792,11 @@ _converse.api = {
17921792
_converse.connection.send(
17931793
$msg({
17941794
'to': _converse.bare_jid,
1795-
'type': this.get('message_type'),
1795+
'type': stanza.getAttribute('type'),
17961796
}).c('forwarded', {'xmlns': Strophe.NS.FORWARD})
17971797
.c('delay', {
1798-
'xmns': Strophe.NS.DELAY,
1799-
'stamp': (new Date()).toISOString()
1798+
'xmns': Strophe.NS.DELAY,
1799+
'stamp': (new Date()).toISOString()
18001800
}).up()
18011801
.cnode(stanza.tree())
18021802
);

0 commit comments

Comments
 (0)