diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2017-03-21 18:23:55 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2017-03-21 18:23:55 +0100 |
commit | a1068df602dcdb79615805baaaa25a034eba548a (patch) | |
tree | 50044ef99e39e3d28493bb49de3cce0707b90821 | |
parent | Fix crash in mod_muc_admin, we operate on integers here not lists (diff) |
prosody2ejabberd: Fix message attribute removal
Actually remove the 'stamp' and 'stamp_legacy' attributes from imported
offline messages as intended.
-rw-r--r-- | src/prosody2ejabberd.erl | 4 |
1 files 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}, |