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/Controller/ChatController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Controller/ChatController.php') diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 920e6dd57..c0bb8d628 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -566,7 +566,7 @@ class ChatController extends AEnvironmentAwareController { $isOwnMessage = $isOwnMessage || ($message->getActorType() === Attendee::ACTOR_BRIDGED && $attendee->getActorId() === MatterbridgeManager::BRIDGE_BOT_USERID); if (!$isOwnMessage && (!$this->participant->hasModeratorPermissions(false) - || $this->room->getType() === Room::ONE_TO_ONE_CALL)) { + || $this->room->getType() === Room::TYPE_ONE_TO_ONE)) { // Actor is not a moderator or not the owner of the message return new DataResponse([], Http::STATUS_FORBIDDEN); } @@ -620,7 +620,7 @@ class ChatController extends AEnvironmentAwareController { public function clearHistory(): DataResponse { $attendee = $this->participant->getAttendee(); if (!$this->participant->hasModeratorPermissions(false) - || $this->room->getType() === Room::ONE_TO_ONE_CALL) { + || $this->room->getType() === Room::TYPE_ONE_TO_ONE) { // Actor is not a moderator or not the owner of the message return new DataResponse([], Http::STATUS_FORBIDDEN); } -- cgit v1.2.3