summaryrefslogtreecommitdiffstats
path: root/lib/Activity
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/Activity
parent8c18fc16cb5ea5044f7f0d67b0693fe60b2e2eae (diff)
Replace old type constants with new ones
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Activity')
-rw-r--r--lib/Activity/Listener.php2
-rw-r--r--lib/Activity/Provider/Base.php8
2 files changed, 5 insertions, 5 deletions
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,
];
}