24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

mod_mam: Keep 'to' attribute for MUC MAM messages

This commit is contained in:
Holger Weiss 2015-12-15 21:05:04 +01:00
parent 5bb70e844d
commit 0e330da2a6

View File

@ -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),