25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Handle Prosody storage attributes key, when, with (#2724)

This commit is contained in:
Badlop 2018-12-21 15:00:54 +01:00
parent 011cf55eb5
commit 740ea3a047

View File

@ -525,6 +525,11 @@ el_to_offline_msg(LUser, LServer, #xmlel{attrs = Attrs} = El) ->
deserialize(L) ->
deserialize(L, #xmlel{}, []).
deserialize([{Other, _}|T], El, Acc)
when (Other == <<"key">>)
or (Other == <<"when">>)
or (Other == <<"with">>) ->
deserialize(T, El, Acc);
deserialize([{<<"attr">>, Attrs}|T], El, Acc) ->
deserialize(T, El#xmlel{attrs = Attrs ++ El#xmlel.attrs}, Acc);
deserialize([{<<"name">>, Name}|T], El, Acc) ->