diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-10-25 01:05:45 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2018-10-25 01:05:45 +0200 |
commit | a8b11b6474a910660b293fc46359841c291f50bb (patch) | |
tree | d35d0efc978ae01006985ccf86a43eec482e1370 /src/mod_offline_sql.erl | |
parent | Do no add 127.0.0.1 address to trusted_proxies list by default (diff) |
Move some functions from xmpp back into ejabberd
Diffstat (limited to 'src/mod_offline_sql.erl')
-rw-r--r-- | src/mod_offline_sql.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_offline_sql.erl b/src/mod_offline_sql.erl index 0e764c269..c114b1dce 100644 --- a/src/mod_offline_sql.erl +++ b/src/mod_offline_sql.erl @@ -48,7 +48,7 @@ store_message(#offline_msg{us = {LUser, LServer}} = M) -> From = M#offline_msg.from, To = M#offline_msg.to, Packet = xmpp:set_from_to(M#offline_msg.packet, From, To), - NewPacket = xmpp_util:add_delay_info( + NewPacket = misc:add_delay_info( Packet, jid:make(LServer), M#offline_msg.timestamp, <<"Offline Storage">>), @@ -198,7 +198,7 @@ export(_Server) -> try xmpp:decode(El, ?NS_CLIENT, [ignore_els]) of Packet -> Packet1 = xmpp:set_from_to(Packet, From, To), - Packet2 = xmpp_util:add_delay_info( + Packet2 = misc:add_delay_info( Packet1, jid:make(LServer), TimeStamp, <<"Offline Storage">>), XML = fxml:element_to_binary(xmpp:encode(Packet2)), |