aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2018-12-21 15:00:54 +0100
committerBadlop <badlop@process-one.net>2018-12-21 15:15:02 +0100
commit740ea3a047d247d4371907e18f776616b59fa5d5 (patch)
tree1b3eed8ba43a8ad9e39b29379eba72e11b7c432d /src
parentHandle persist=false in roster items (#2722) (diff)
Handle Prosody storage attributes key, when, with (#2724)
Diffstat (limited to 'src')
-rw-r--r--src/prosody2ejabberd.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/prosody2ejabberd.erl b/src/prosody2ejabberd.erl
index 663d01f69..d15142358 100644
--- a/src/prosody2ejabberd.erl
+++ b/src/prosody2ejabberd.erl
@@ -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) ->