mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue