diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php index 59b5228e421..908ff77d0bd 100644 --- a/lib/Service/RoomService.php +++ b/lib/Service/RoomService.php @@ -169,7 +169,7 @@ public function createConversation(int $type, string $name, ?IUser $owner = null throw new PasswordException(PasswordException::REASON_VALUE, $this->l10n->t('Password needs to be set')); } - if ($type !== Room::TYPE_PUBLIC) { + if ($type !== Room::TYPE_PUBLIC || $password === '') { $room = $this->manager->createRoom($type, $name, $objectType, $objectId); } else { $event = new ValidatePasswordPolicyEvent($password);