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}) ->
|
fun({_, RawXML}) ->
|
||||||
case deserialize(RawXML) of
|
case deserialize(RawXML) of
|
||||||
[El] ->
|
[El] ->
|
||||||
Msg = el_to_offline_msg(LUser, LServer, El),
|
case el_to_offline_msg(LUser, LServer, El) of
|
||||||
ok = mod_offline:store_offline_msg(Msg);
|
[Msg] -> ok = mod_offline:store_offline_msg(Msg);
|
||||||
|
[] -> ok
|
||||||
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
ok
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue