From 7cef52b91d7fc62374ce29663592cfa210b31256 Mon Sep 17 00:00:00 2001 From: sualko Date: Wed, 30 Jun 2021 11:33:10 +0200 Subject: [PATCH] fix: set default values on room creation fix #155 --- lib/Service/RoomService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index 9c7eba3..8d46c76 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -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));