mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Fix: mod_offline:store_offline_msg/1 expects a message, not list (#2312)
This commit is contained in:
parent
ad0fd1eac1
commit
dbf1cabdcd
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue