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}) ->
|
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…
Reference in New Issue
Block a user