Only pass muteOnStart if set to true (#2401)

This commit is contained in:
Ahmad Farhat 2021-01-04 17:55:09 -05:00 committed by GitHub
parent cf3b450743
commit 752b192ef9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,13 +66,13 @@ module BbbServer
moderatorPW: room.moderator_pw, moderatorPW: room.moderator_pw,
attendeePW: room.attendee_pw, attendeePW: room.attendee_pw,
moderatorOnlyMessage: options[:moderator_message], moderatorOnlyMessage: options[:moderator_message],
muteOnStart: options[:mute_on_start] || false,
"meta_#{META_LISTED}": options[:recording_default_visibility] || false, "meta_#{META_LISTED}": options[:recording_default_visibility] || false,
"meta_bbb-origin-version": Greenlight::Application::VERSION, "meta_bbb-origin-version": Greenlight::Application::VERSION,
"meta_bbb-origin": "Greenlight", "meta_bbb-origin": "Greenlight",
"meta_bbb-origin-server-name": options[:host] "meta_bbb-origin-server-name": options[:host]
} }
create_options[:muteOnStart] = options[:mute_on_start] if options[:mute_on_start]
create_options[:guestPolicy] = "ASK_MODERATOR" if options[:require_moderator_approval] create_options[:guestPolicy] = "ASK_MODERATOR" if options[:require_moderator_approval]
# Send the create request. # Send the create request.