summaryrefslogtreecommitdiffstats
path: root/lib/Service/RoomService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/RoomService.php')
-rw-r--r--lib/Service/RoomService.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php
index 9164f48b2..f54544b18 100644
--- a/lib/Service/RoomService.php
+++ b/lib/Service/RoomService.php
@@ -68,7 +68,7 @@ class RoomService {
} catch (RoomNotFoundException $e) {
$users = [$actor->getUID(), $targetUser->getUID()];
sort($users);
- $room = $this->manager->createRoom(Room::ONE_TO_ONE_CALL, json_encode($users));
+ $room = $this->manager->createRoom(Room::TYPE_ONE_TO_ONE, json_encode($users));
$this->participantService->addUsers($room, [
[
@@ -107,9 +107,9 @@ class RoomService {
}
if (!\in_array($type, [
- Room::GROUP_CALL,
- Room::PUBLIC_CALL,
- Room::CHANGELOG_CONVERSATION,
+ Room::TYPE_GROUP,
+ Room::TYPE_PUBLIC,
+ Room::TYPE_CHANGELOG,
], true)) {
throw new InvalidArgumentException('type');
}