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:
parent
ad0fd1eac1
commit
dbf1cabdcd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user