Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakout rooms Group #852

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions bbbeasy-backend/app/src/Data/PresetData.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,22 @@

namespace Data;



class PresetData
{
private array $data = [];

public function setData($category, $subCategory, $value): void
{
if (null !== $value || (\is_string($value) && !empty($value))) {
$this->data[$category][$subCategory] = $value;


if ( is_string($value) && empty($value) ) {
$value=null;
}

$this->data[$category][$subCategory] = $value;

}

public function getData($category, $subCategory)
Expand Down
2 changes: 1 addition & 1 deletion bbbeasy-backend/app/src/Enum/Presets/BreakoutRooms.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class BreakoutRooms extends Enum
{
public const GROUP_NAME = 'BreakoutRooms';
public const GROUP_NAME = 'Breakout Rooms';

public const CONFIGURABLE = 'configurable';
public const PRIVATE_CHAT = 'private_chat';
Expand Down
2 changes: 1 addition & 1 deletion bbbeasy-backend/app/src/Enum/Presets/GuestPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class GuestPolicy extends Enum
{
public const GROUP_NAME = 'GuestPolicy';
public const GROUP_NAME = 'Guest Policy';
public const CONFIGURABLE = 'configurable';
public const POLICY = 'policy';

Expand Down
2 changes: 1 addition & 1 deletion bbbeasy-backend/app/src/Enum/Presets/LearningDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class LearningDashboard extends Enum
{
public const GROUP_NAME = 'LearningDashboard';
public const GROUP_NAME = 'Learning Dashboard';
public const CONFIGURABLE = 'configurable';
public const CLEANUP_DELAY = 'cleanup_delay';

Expand Down
2 changes: 1 addition & 1 deletion bbbeasy-backend/app/src/Enum/Presets/LockSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class LockSettings extends Enum
{
public const GROUP_NAME = 'LockSettings';
public const GROUP_NAME = 'Lock Settings';
public const WEBCAMS = 'webcams';
public const MICROPHONES = 'microphones';
public const PRIVATE_CHAT = 'private_chat';
Expand Down
2 changes: 1 addition & 1 deletion bbbeasy-backend/app/src/Enum/Presets/UserExperience.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class UserExperience extends Enum
{
public const GROUP_NAME = 'UserExperience';
public const GROUP_NAME = 'User Experience';
public const KEYBOARD_SHORTCUTS = 'keyboard_shortcuts';
public const ASK_FOR_FEEDBACK = 'ask_for_feedback';

Expand Down
3 changes: 2 additions & 1 deletion bbbeasy-backend/app/src/Utils/PresetProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public function toCreateMeetingParams($preset, $createParams)
// $createParams->setUseAvatars($presetsData->getData(Branding::GROUP_NAME, Branding::USE_AVATARS));

$createParams->setBreakoutRoomsEnabled($presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::CONFIGURABLE));
$createParams->setBreakoutRoomsRecord($presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::RECORDING));

$createParams->setBreakoutRoomsRecord(null !== $presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::RECORDING) ? $presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::RECORDING) : true);

$createParams->setBreakoutRoomsPrivateChatEnabled(null !== $presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::PRIVATE_CHAT) ? $presetsData->getData(BreakoutRooms::GROUP_NAME, BreakoutRooms::PRIVATE_CHAT) : true);

Expand Down