Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-10 12:17:20 +0300
committerJoas Schilling <coding@schilljs.com>2019-10-10 12:19:23 +0300
commitad1b6ffefa74d47f3e419a1aa70d5a24c214eb24 (patch)
treed55e7ebcb663e6aa44e64ebb608629ef850338a8 /lib
parentf1142ea0a38436442c5574a373ea11eb43ec1d38 (diff)
Remove dead method (the code was merged into addParticipantToRoom already)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/RoomController.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php
index 4de5f77c7..34ef25f5c 100644
--- a/lib/Controller/RoomController.php
+++ b/lib/Controller/RoomController.php
@@ -698,34 +698,6 @@ class RoomController extends AEnvironmentAwareController {
/**
* @PublicPage
- * @RequireLoggedInModeratorParticipant
- *
- * @param string $newParticipant
- * @return DataResponse
- */
- public function inviteEmailToRoom(string $newParticipant): DataResponse {
- $currentUser = $this->userManager->get($this->userId);
- if (!$currentUser instanceof IUser) {
- return new DataResponse([], Http::STATUS_NOT_FOUND);
- }
-
- if ($this->room->getType() === Room::ONE_TO_ONE_CALL) {
- return new DataResponse([], Http::STATUS_BAD_REQUEST);
- }
-
- $data = [];
- // In case a guest is added to a non-public call, we change the call to a public call
- if ($this->room->changeType(Room::PUBLIC_CALL)) {
- $data = ['type' => $this->room->getType()];
- }
-
- $this->guestManager->inviteByEmail($this->room, $newParticipant);
-
- return new DataResponse($data);
- }
-
- /**
- * @PublicPage
* @RequireParticipant
*
* @param string $participant