diff options
author | Badlop <badlop@process-one.net> | 2018-03-02 13:43:50 +0300 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2018-03-02 13:44:10 +0300 |
commit | dbf1cabdcd17cd232c70e3ca8a5d18b0de122bbb (patch) | |
tree | 3628f92c55c131834f3b7b33614b8930eeb873c3 | |
parent | ad0fd1eac1745199067d03171dee315b77858a2b (diff) |
Fix: mod_offline:store_offline_msg/1 expects a message, not list (#2312)
-rw-r--r-- | src/prosody2ejabberd.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/prosody2ejabberd.erl b/src/prosody2ejabberd.erl index 14d78702e..62cb32417 100644 --- a/src/prosody2ejabberd.erl +++ b/src/prosody2ejabberd.erl @@ -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 |