diff options
author | Joas Schilling <coding@schilljs.com> | 2021-10-18 17:17:11 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-18 17:17:11 +0300 |
commit | 9e8d94d58f4cf230e08fbca95393040c44acbd50 (patch) | |
tree | 6f9d9afa013e3a4c7a9d92ca5dc52d7e00ffb2f8 /lib/Controller/ChatController.php | |
parent | 8c18fc16cb5ea5044f7f0d67b0693fe60b2e2eae (diff) |
Replace old type constants with new ones
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/ChatController.php')
-rw-r--r-- | lib/Controller/ChatController.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |