From 9e8d94d58f4cf230e08fbca95393040c44acbd50 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 18 Oct 2021 16:17:11 +0200 Subject: Replace old type constants with new ones Signed-off-by: Joas Schilling --- lib/Activity/Listener.php | 2 +- lib/Activity/Provider/Base.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Activity') diff --git a/lib/Activity/Listener.php b/lib/Activity/Listener.php index 65d98bbed..78f62dad1 100644 --- a/lib/Activity/Listener.php +++ b/lib/Activity/Listener.php @@ -124,7 +124,7 @@ class Listener { $message = 'call_ended'; if ((\count($userIds) + $numGuests) === 1) { - if ($room->getType() !== Room::ONE_TO_ONE_CALL) { + if ($room->getType() !== Room::TYPE_ONE_TO_ONE) { // Single user pinged or guests only => no summary/activity $room->resetActiveSince(); return false; diff --git a/lib/Activity/Provider/Base.php b/lib/Activity/Provider/Base.php index a61a16f01..b1803ceaf 100644 --- a/lib/Activity/Provider/Base.php +++ b/lib/Activity/Provider/Base.php @@ -110,13 +110,13 @@ abstract class Base implements IProvider { protected function getRoom(Room $room, string $userId): array { switch ($room->getType()) { - case Room::ONE_TO_ONE_CALL: + case Room::TYPE_ONE_TO_ONE: $stringType = 'one2one'; break; - case Room::GROUP_CALL: + case Room::TYPE_GROUP: $stringType = 'group'; break; - case Room::PUBLIC_CALL: + case Room::TYPE_PUBLIC: default: $stringType = 'public'; break; @@ -136,7 +136,7 @@ abstract class Base implements IProvider { 'type' => 'call', 'id' => $roomId, 'name' => $l->t('a conversation'), - 'call-type' => Room::UNKNOWN_CALL, + 'call-type' => Room::TYPE_UNKNOWN, ]; } -- cgit v1.2.3