mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
prosody2ejabberd: Fix message attribute removal
Actually remove the 'stamp' and 'stamp_legacy' attributes from imported offline messages as intended.
This commit is contained in:
parent
f819272b88
commit
a1068df602
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user