fix: set layout params only for clean layout

fix #147
pull/149/head
sualko 2021-04-25 20:34:36 +02:00
parent 1b6a20e3ca
commit bc3f64c4c3
1 changed files with 5 additions and 3 deletions

View File

@ -94,9 +94,11 @@ class API {
$joinMeetingParams->addUserData('bbb_skip_check_audio_on_first_join', !$room->getMediaCheck()); // 2.3
$joinMeetingParams->addUserData('bbb_skip_video_preview_on_first_join', !$room->getMediaCheck()); // 2.3
$joinMeetingParams->addUserData('bbb_auto_swap_layout', $room->getCleanLayout());
$joinMeetingParams->addUserData('bbb_show_participants_on_login', !$room->getCleanLayout());
$joinMeetingParams->addUserData('bbb_show_public_chat_on_login', !$room->getCleanLayout());
if ($room->getCleanLayout()) {
$joinMeetingParams->addUserData('bbb_auto_swap_layout', true);
$joinMeetingParams->addUserData('bbb_show_participants_on_login', false);
$joinMeetingParams->addUserData('bbb_show_public_chat_on_login', false);
}
if ($this->config->getAppValue('bbb', 'join.theme') === 'true') {
$primaryColor = $this->defaults->getColorPrimary();