mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Handle Prosody storage attributes key, when, with (#2724)
This commit is contained in:
parent
011cf55eb5
commit
740ea3a047
@ -525,6 +525,11 @@ el_to_offline_msg(LUser, LServer, #xmlel{attrs = Attrs} = El) ->
|
|||||||
deserialize(L) ->
|
deserialize(L) ->
|
||||||
deserialize(L, #xmlel{}, []).
|
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([{<<"attr">>, Attrs}|T], El, Acc) ->
|
||||||
deserialize(T, El#xmlel{attrs = Attrs ++ El#xmlel.attrs}, Acc);
|
deserialize(T, El#xmlel{attrs = Attrs ++ El#xmlel.attrs}, Acc);
|
||||||
deserialize([{<<"name">>, Name}|T], El, Acc) ->
|
deserialize([{<<"name">>, Name}|T], El, Acc) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user