GRN2-xx: Fixed issue with join warning displaying incorrectly (#1957)

* Fixed issue with room settings

* Update room join consent string
This commit is contained in:
Ahmad Farhat
2020-07-30 10:50:04 -04:00
committed by GitHub
parent af8c78fdee
commit ec93d5e472
6 changed files with 38 additions and 32 deletions

View File

@ -94,31 +94,6 @@ module Joiner
}
end
# Gets the room setting based on the option set in the room configuration
def room_setting_with_config(name)
config = case name
when "muteOnStart"
"Room Configuration Mute On Join"
when "requireModeratorApproval"
"Room Configuration Require Moderator"
when "joinModerator"
"Room Configuration All Join Moderator"
when "anyoneCanStart"
"Room Configuration Allow Any Start"
when "recording"
"Room Configuration Recording"
end
case @settings.get_value(config)
when "enabled"
true
when "optional"
@room_settings[name]
when "disabled"
false
end
end
private
def fetch_guest_id