diff options
Diffstat (limited to 'lib/Service/ParticipantService.php')
-rw-r--r-- | lib/Service/ParticipantService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/ParticipantService.php b/lib/Service/ParticipantService.php index 8eb594270..1b007c21e 100644 --- a/lib/Service/ParticipantService.php +++ b/lib/Service/ParticipantService.php @@ -249,7 +249,7 @@ class ParticipantService { $manager = \OC::$server->get(\OCA\Talk\Manager::class); // User joining a group or public call through listing - if (($room->getType() === Room::GROUP_CALL || $room->getType() === Room::PUBLIC_CALL) && + if (($room->getType() === Room::TYPE_GROUP || $room->getType() === Room::TYPE_PUBLIC) && $manager->isRoomListableByUser($room, $user->getUID()) ) { $this->addUsers($room, [[ @@ -259,7 +259,7 @@ class ParticipantService { // need to use "USER" here, because "USER_SELF_JOINED" only works for public calls 'participantType' => Participant::USER, ]], $user); - } elseif ($room->getType() === Room::PUBLIC_CALL) { + } elseif ($room->getType() === Room::TYPE_PUBLIC) { // User joining a public room, without being invited $this->addUsers($room, [[ 'actorType' => Attendee::ACTOR_USERS, @@ -638,7 +638,7 @@ class ParticipantService { } public function ensureOneToOneRoomIsFilled(Room $room): void { - if ($room->getType() !== Room::ONE_TO_ONE_CALL) { + if ($room->getType() !== Room::TYPE_ONE_TO_ONE) { return; } |