diff options
author | Vitor Mattos <vitor@php.rio> | 2022-06-13 18:53:38 +0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2022-06-30 21:01:31 +0300 |
commit | bd9913e1ea72be757e34b5719be0ceace6427544 (patch) | |
tree | 18c1276534feb5912725b6959baf87fd50676663 /lib/Chat/ChatManager.php | |
parent | 1f808ebe56c676d16c81233237bb86332fef98c2 (diff) |
Rename message expire to expire date
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/Chat/ChatManager.php')
-rw-r--r-- | lib/Chat/ChatManager.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php index c69ef4ae8..826f0e7fa 100644 --- a/lib/Chat/ChatManager.php +++ b/lib/Chat/ChatManager.php @@ -263,7 +263,7 @@ class ChatManager { if ($referenceId !== '') { $comment->setReferenceId($referenceId); } - $this->setMessageExpire($chat, $comment); + $this->setExpireDate($chat, $comment); $event = new ChatParticipantEvent($chat, $comment, $participant, $silent); $this->dispatcher->dispatch(self::EVENT_BEFORE_MESSAGE_SEND, $event); @@ -309,15 +309,15 @@ class ChatManager { return $comment; } - private function setMessageExpire(Room $room, IComment $comment): void { - $expireInterval = $room->getMessageExpire(); + private function setExpireDate(Room $room, IComment $comment): void { + $expireInterval = $room->getExpireInterval(); if (!$expireInterval) { return; } $dateTime = $this->timeFactory->getDateTime(); $dateTime->add(DateInterval::createFromDateString($expireInterval . ' seconds')); - $comment->setMessageExpire($dateTime); + $comment->setExpireDate($dateTime); } /** |