mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
mod_mam: Keep 'to' attribute for MUC MAM messages
This commit is contained in:
parent
5bb70e844d
commit
0e330da2a6
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user