prosody2ejabberd: Fix message attribute removal

Actually remove the 'stamp' and 'stamp_legacy' attributes from imported
offline messages as intended.
This commit is contained in:
Holger Weiss 2017-03-21 18:23:55 +01:00
parent f819272b88
commit a1068df602
1 changed files with 2 additions and 2 deletions

View File

@ -337,8 +337,8 @@ el_to_offline_msg(LUser, LServer, #xmlel{attrs = Attrs} = El) ->
TS = xmpp_util:decode_timestamp(
fxml:get_attr_s(<<"stamp">>, Attrs)),
Attrs1 = lists:filter(
fun(<<"stamp">>) -> false;
(<<"stamp_legacy">>) -> false;
fun({<<"stamp">>, _}) -> false;
({<<"stamp_legacy">>, _}) -> false;
(_) -> true
end, Attrs),
Packet = El#xmlel{attrs = Attrs1},