From 018f683ac83494a09a96e00caf168aee58962223 Mon Sep 17 00:00:00 2001 From: Anna Larch Date: Wed, 13 Nov 2024 16:50:21 +0100 Subject: [PATCH] fixup! feat: add option to force passwords in public conversations --- lib/Controller/RoomController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index a2bf022f54c..f90010322f1 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -500,12 +500,13 @@ protected function formatRoom(Room $room, ?Participant $currentParticipant, ?arr * @param string $objectType Type of the object * @param string $objectId ID of the object * @param string $password The room password - * @return DataResponse|DataResponse|DataResponse, array{}> + * @return DataResponse|DataResponse|DataResponse|DataResponse, array{}> * * 200: Room already existed * 201: Room created successfully * 400: Room type invalid * 403: Missing permissions to create room + * 403: Missing or invalid password * 404: User, group or other target to invite was not found */ #[NoAdminRequired] @@ -650,7 +651,7 @@ protected function createCircleRoom(string $targetCircleId): DataResponse { } /** - * @return DataResponse|DataResponse|DataResponse, array{}> + * @return DataResponse|DataResponse|DataResponse|DataResponse, array{}> */ #[NoAdminRequired] protected function createEmptyRoom(string $roomName, bool $public = true, string $objectType = '', string $objectId = '', string $password = ''): DataResponse {