summaryrefslogtreecommitdiff
path: root/src/mod_carboncopy.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-01-25 20:02:47 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-01-25 20:02:47 +0300
commit2269d290d80672e4e71e380d693404280c7050d2 (patch)
tree1d16d3fbaed71dfdce49912865c4079553bf62ac /src/mod_carboncopy.erl
parentHandle ignore from xmpp_socket callback start (diff)
Switch to newer fast_xml and xmpp and update record fields in the code
Diffstat (limited to 'src/mod_carboncopy.erl')
-rw-r--r--src/mod_carboncopy.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_carboncopy.erl b/src/mod_carboncopy.erl
index 8e76ad1d..9c5f5ffd 100644
--- a/src/mod_carboncopy.erl
+++ b/src/mod_carboncopy.erl
@@ -247,7 +247,7 @@ send_copies(JID, To, Packet, Direction)->
-spec build_forward_packet(jid(), message(), jid(), jid(), direction()) -> message().
build_forward_packet(JID, #message{type = T} = Msg, Sender, Dest, Direction) ->
- Forwarded = #forwarded{xml_els = [xmpp:encode(complete_packet(JID, Msg, Direction))]},
+ Forwarded = #forwarded{sub_els = [complete_packet(JID, Msg, Direction)]},
Carbon = case Direction of
sent -> #carbons_sent{forwarded = Forwarded};
received -> #carbons_received{forwarded = Forwarded}