From a1068df602dcdb79615805baaaa25a034eba548a Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 21 Mar 2017 18:23:55 +0100 Subject: [PATCH] prosody2ejabberd: Fix message attribute removal Actually remove the 'stamp' and 'stamp_legacy' attributes from imported offline messages as intended. --- src/prosody2ejabberd.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/prosody2ejabberd.erl b/src/prosody2ejabberd.erl index 6131acab6..dbe568e7c 100644 --- a/src/prosody2ejabberd.erl +++ b/src/prosody2ejabberd.erl @@ -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},