mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Pass also MUC room retract messages over the muc_filter_message (#3397)
This commit is contained in:
parent
ff24700156
commit
83e51c815d
@ -5160,12 +5160,18 @@ process_iq_moderate(From, #iq{type = set, lang = Lang},
|
||||
ok
|
||||
end,
|
||||
By = jid:replace_resource(JID, find_nick_by_jid(From, StateData)),
|
||||
Packet = #message{type = groupchat,
|
||||
Packet0 = #message{type = groupchat,
|
||||
from = From,
|
||||
sub_els = [
|
||||
#fasten_apply_to{id = Id, sub_els = [
|
||||
#message_moderated{by = By, reason = Reason,
|
||||
retract = #message_retract{}}
|
||||
]}]},
|
||||
{FromNick, _Role} = get_participant_data(From, StateData),
|
||||
Packet = ejabberd_hooks:run_fold(muc_filter_message,
|
||||
StateData#state.server_host,
|
||||
Packet0,
|
||||
[StateData, FromNick]),
|
||||
send_wrapped_multiple(JID,
|
||||
get_users_and_subscribers_with_node(?NS_MUCSUB_NODES_MESSAGES, StateData),
|
||||
Packet, ?NS_MUCSUB_NODES_MESSAGES, StateData),
|
||||
|
Loading…
Reference in New Issue
Block a user