mirror of https://github.com/sualko/cloud_bbb
fix: enable media check for new rooms by default
parent
ad9a5b1d38
commit
2a47452e7c
|
@ -82,7 +82,7 @@ class RoomService {
|
||||||
public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity {
|
public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity {
|
||||||
$room = new Room();
|
$room = new Room();
|
||||||
|
|
||||||
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true';
|
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true';
|
||||||
|
|
||||||
$room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE));
|
$room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE));
|
||||||
$room->setName($name);
|
$room->setName($name);
|
||||||
|
|
|
@ -30,7 +30,7 @@ class Admin implements ISettings {
|
||||||
'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '',
|
'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '',
|
||||||
'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',
|
'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',
|
||||||
'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'),
|
'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'),
|
||||||
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true' ? 'checked' : '',
|
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true' ? 'checked' : '',
|
||||||
];
|
];
|
||||||
|
|
||||||
return new TemplateResponse('bbb', 'admin', $parameters);
|
return new TemplateResponse('bbb', 'admin', $parameters);
|
||||||
|
|
Loading…
Reference in New Issue