summaryrefslogtreecommitdiffstats
path: root/lib/Controller/PageController.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-10-18 16:17:11 +0200
committerJoas Schilling <coding@schilljs.com>2021-10-18 16:17:11 +0200
commit9e8d94d58f4cf230e08fbca95393040c44acbd50 (patch)
tree6f9d9afa013e3a4c7a9d92ca5dc52d7e00ffb2f8 /lib/Controller/PageController.php
parent8c18fc16cb5ea5044f7f0d67b0693fe60b2e2eae (diff)
Replace old type constants with new ones
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/PageController.php')
-rw-r--r--lib/Controller/PageController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index 7cc11196c..921097446 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -205,7 +205,7 @@ class PageController extends Controller {
}
// If the room is not a public room, check if the user is in the participants
- if ($room->getType() !== Room::PUBLIC_CALL) {
+ if ($room->getType() !== Room::TYPE_PUBLIC) {
$this->manager->getRoomForUser($room->getId(), $this->userId);
}
} catch (RoomNotFoundException $e) {
@@ -243,7 +243,7 @@ class PageController extends Controller {
}
}
} else {
- $response = $this->api->createRoom(Room::ONE_TO_ONE_CALL, $callUser);
+ $response = $this->api->createRoom(Room::TYPE_ONE_TO_ONE, $callUser);
if ($response->getStatus() === Http::STATUS_OK
|| $response->getStatus() === Http::STATUS_CREATED) {
$data = $response->getData();
@@ -284,7 +284,7 @@ class PageController extends Controller {
protected function guestEnterRoom(string $token, string $password): Response {
try {
$room = $this->manager->getRoomByToken($token);
- if ($room->getType() !== Room::PUBLIC_CALL) {
+ if ($room->getType() !== Room::TYPE_PUBLIC) {
throw new RoomNotFoundException();
}
} catch (RoomNotFoundException $e) {
@@ -348,7 +348,7 @@ class PageController extends Controller {
if ($this->userId === null) {
try {
$room = $this->manager->getRoomByToken($token);
- if ($room->getType() !== Room::PUBLIC_CALL) {
+ if ($room->getType() !== Room::TYPE_PUBLIC) {
throw new RoomNotFoundException();
}
return new RedirectResponse($this->url->linkToRoute('spreed.Page.showCall', ['token' => $token]));