25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Make mod_muc_rtbl notify only local node rooms

This commit is contained in:
Paweł Chmielowski 2023-04-17 17:07:59 +02:00
parent c942c31e38
commit 98d348893b

View File

@ -188,8 +188,10 @@ notify_rooms(Host, Items) ->
lists:foreach( lists:foreach(
fun(CHost) -> fun(CHost) ->
lists:foreach( lists:foreach(
fun({_, _, Pid}) -> fun({_, _, Pid}) when node(Pid) == node() ->
mod_muc_room:route(Pid, IQ) mod_muc_room:route(Pid, IQ);
(_) ->
ok
end, mod_muc:get_online_rooms(CHost)) end, mod_muc:get_online_rooms(CHost))
end, mod_muc_admin:find_hosts(Host)). end, mod_muc_admin:find_hosts(Host)).