File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
jicofo-selector/src/main/resources
java/org/jitsi/jicofo/conference
kotlin/org/jitsi/jicofo/visitors Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,10 @@ jicofo {
393393 # With this option enabled the second part is started automatically as soon as any visitors join. Otherwise, jicofo
394394 # waits to receive a <broadcast enabled=true> extension from one of the moderators in the conference.
395395 auto-enable-broadcast = true
396+
397+ # Whether to require the "visitorsEnabled" flag in the MUC config form before enabling visitors for a conference.
398+ # This allows the visitors option to be controlled per-conference.
399+ require-muc-config-flag = false
396400 }
397401
398402 xmpp {
Original file line number Diff line number Diff line change @@ -1681,6 +1681,13 @@ public String redirectVisitor(boolean visitorRequested)
16811681 {
16821682 return null ;
16831683 }
1684+ if (VisitorsConfig .config .getRequireMucConfigFlag ())
1685+ {
1686+ if (chatRoom == null || !Boolean .TRUE .equals (chatRoom .getVisitorsEnabled ()))
1687+ {
1688+ return null ;
1689+ }
1690+ }
16841691 // We don't support visitors in breakout rooms.
16851692 if (mainRoomJid != null )
16861693 {
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ class VisitorsConfig private constructor() {
4040 " jicofo.visitors.auto-enable-broadcast" .from(newConfig)
4141 }
4242
43+ val requireMucConfigFlag: Boolean by config {
44+ " jicofo.visitors.require-muc-config-flag" .from(newConfig)
45+ }
4346 companion object {
4447 @JvmField
4548 val config = VisitorsConfig ()
You can’t perform that action at this time.
0 commit comments