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

Fix: mod_offline:store_offline_msg/1 expects a message, not list (#2312)

This commit is contained in:
Badlop 2018-03-02 11:43:50 +01:00
parent ad0fd1eac1
commit dbf1cabdcd

View File

@ -201,8 +201,10 @@ convert_data(Host, "offline", User, [Data]) ->
fun({_, RawXML}) ->
case deserialize(RawXML) of
[El] ->
Msg = el_to_offline_msg(LUser, LServer, El),
ok = mod_offline:store_offline_msg(Msg);
case el_to_offline_msg(LUser, LServer, El) of
[Msg] -> ok = mod_offline:store_offline_msg(Msg);
[] -> ok
end;
_ ->
ok
end