@@ -16,7 +16,7 @@ local filter_identity_from_presence = util.filter_identity_from_presence;
1616local is_admin = util .is_admin ;
1717local presence_check_status = util .presence_check_status ;
1818local process_host_module = util .process_host_module ;
19- local is_transcriber_jigasi = util .is_transcriber_jigasi ;
19+ local is_jibri = util .is_jibri ;
2020local room_jid_match_rewrite = util .room_jid_match_rewrite ;
2121local json = require ' cjson.safe' ;
2222
@@ -34,10 +34,6 @@ if main_muc_component_config == nil then
3434 return ;
3535end
3636
37- -- A list of domains which to be ignored for visitors. For occupants using those domain we do not propagate them
38- -- to visitor nodes and we do not update them with presence changes
39- local ignore_list = module :get_option_set (' visitors_ignore_list' , {});
40-
4137-- Advertise the component for discovery via disco#items
4238module :add_identity (' component' , ' visitors' , ' visitors.' .. module .host );
4339
@@ -270,9 +266,8 @@ process_host_module(main_muc_component_config, function(host_module, host)
270266 local room , stanzaEv , occupant = event .room , event .stanza , event .dest_occupant ;
271267 local stanza = filter_stanza_nick_if_needed (stanzaEv , room );
272268
273- -- filter focus and configured domains (used for jibri and transcribers)
274- if is_admin (stanza .attr .from ) or visitors_nodes [room .jid ] == nil
275- or (ignore_list :contains (jid .host (occupant .bare_jid )) and not is_transcriber_jigasi (stanza )) then
269+ -- filter focus and jibri
270+ if is_admin (stanza .attr .from ) or visitors_nodes [room .jid ] == nil or is_jibri (occupant .jid ) then
276271 return ;
277272 end
278273
@@ -292,9 +287,9 @@ process_host_module(main_muc_component_config, function(host_module, host)
292287 local room , stanzaEv , occupant = event .room , event .stanza , event .occupant ;
293288 local stanza = filter_stanza_nick_if_needed (stanzaEv , room );
294289
295- -- ignore configured domains (jibri and transcribers)
290+ -- ignore jicofo and jibri
296291 if is_admin (occupant .bare_jid ) or visitors_nodes [room .jid ] == nil or visitors_nodes [room .jid ].nodes == nil
297- or ( ignore_list : contains ( jid . host ( occupant .bare_jid )) and not is_transcriber_jigasi ( stanza ) ) then
292+ or is_jibri ( occupant .jid ) then
298293 return ;
299294 end
300295
@@ -336,9 +331,8 @@ process_host_module(main_muc_component_config, function(host_module, host)
336331 local room , stanzaEv , occupant = event .room , event .stanza , event .occupant ;
337332 local stanza = filter_stanza_nick_if_needed (stanzaEv , room );
338333
339- -- filter focus, ignore configured domains (jibri and transcribers)
340- if is_admin (stanza .attr .from ) or visitors_nodes [room .jid ] == nil
341- or (ignore_list :contains (jid .host (occupant .bare_jid )) and not is_transcriber_jigasi (stanza )) then
334+ -- filter focus, ignore jibri
335+ if is_admin (stanza .attr .from ) or visitors_nodes [room .jid ] == nil or is_jibri (occupant .jid ) then
342336 return ;
343337 end
344338
0 commit comments