Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mod_mam.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl
index 7e2051057..3d81b0d66 100644
--- a/src/mod_mam.erl
+++ b/src/mod_mam.erl
@@ -781,8 +781,7 @@ maybe_update_from_to(#xmlel{children = Els} = Pkt, JidRequestor,
[]
end,
Pkt1 = Pkt#xmlel{children = Items ++ Els},
- Pkt2 = jlib:replace_from(jid:replace_resource(JidRequestor, Nick), Pkt1),
- jlib:remove_attr(<<"to">>, Pkt2).
+ Pkt2 = jlib:replace_from(jid:replace_resource(JidRequestor, Nick), Pkt1).
is_bare_copy(#jid{luser = U, lserver = S, lresource = R}, To) ->
PrioRes = ejabberd_sm:get_user_present_resources(U, S),