25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix calling to mod_offline:store_packet

This commit is contained in:
Evgeniy Khramtsov 2017-01-23 15:00:46 +03:00
parent 5e5a8bbdcf
commit 19bec62eb5

View File

@ -527,7 +527,7 @@ process_offline_msg(Msg, State = #state{user = U, server = S}) ->
From = xmpp:get_from(Msg), From = xmpp:get_from(Msg),
To = jid:make(U, S, <<>>), To = jid:make(U, S, <<>>),
NewMsg = xmpp:set_from_to(Msg, From, To), NewMsg = xmpp:set_from_to(Msg, From, To),
case catch mod_offline:store_packet(From, To, NewMsg) of case catch mod_offline:store_packet(pass, From, To, NewMsg) of
{'EXIT', _} = Err -> {'EXIT', _} = Err ->
stop("Failed to store offline message: ~p", [Err]); stop("Failed to store offline message: ~p", [Err]);
_ -> _ ->