fix: set default values on room creation

fix #155
pull/166/head
sualko 2021-06-30 11:33:10 +02:00
parent 6a0d9da3b6
commit 7cef52b91d
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@ class RoomService {
$room->setRecord($record);
$room->setAccess($access);
$room->setUserId($userId);
$room->setListenOnly(true);
$room->setMediaCheck(true);
$room->setCleanLayout(false);
if ($access === Room::ACCESS_PASSWORD) {
$room->setPassword($this->humanReadableRandom(8));