Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-07-01 16:42:39 +0300
committerJoas Schilling <coding@schilljs.com>2022-07-01 16:42:39 +0300
commit82a0613c27c18aba184304bcf59ff06b666fc53d (patch)
treeb05e9c4d9e9cbc935f31dcde932347a16825819f
parent3c16d954f4fc579a4e6db4a8460020fcfafe0bbc (diff)
Fix event name
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/Room.php4
-rw-r--r--lib/Service/RoomService.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Room.php b/lib/Room.php
index d2d8f19fc..167fd1fc2 100644
--- a/lib/Room.php
+++ b/lib/Room.php
@@ -147,8 +147,8 @@ class Room {
public const EVENT_BEFORE_SESSION_LEAVE_CALL = self::class . '::preSessionLeaveCall';
public const EVENT_AFTER_SESSION_LEAVE_CALL = self::class . '::postSessionLeaveCall';
public const EVENT_BEFORE_SIGNALING_PROPERTIES = self::class . '::beforeSignalingProperties';
- public const EVENT_BEFORE_SET_EXPIRE_DATE = self::class . '::beforeSetMessageExpiration';
- public const EVENT_AFTER_SET_EXPIRE_DATE = self::class . '::afterSetMessageExpiration';
+ public const EVENT_BEFORE_SET_MESSAGE_EXPIRATION = self::class . '::beforeSetMessageExpiration';
+ public const EVENT_AFTER_SET_MESSAGE_EXPIRATION = self::class . '::afterSetMessageExpiration';
public const DESCRIPTION_MAXIMUM_LENGTH = 500;
diff --git a/lib/Service/RoomService.php b/lib/Service/RoomService.php
index 2d297a2dc..515e03e2b 100644
--- a/lib/Service/RoomService.php
+++ b/lib/Service/RoomService.php
@@ -544,7 +544,7 @@ class RoomService {
public function setMessageExpiration(Room $room, Participant $participant, int $seconds): void {
$event = new ModifyRoomEvent($room, 'messageExpiration', $seconds, null, $participant);
- $this->dispatcher->dispatch(Room::EVENT_BEFORE_SET_EXPIRE_DATE, $event);
+ $this->dispatcher->dispatch(Room::EVENT_BEFORE_SET_MESSAGE_EXPIRATION, $event);
$update = $this->db->getQueryBuilder();
$update->update('talk_rooms')
@@ -560,7 +560,7 @@ class RoomService {
$this->addMessageExpirationSystemMessage($room, $participant, $seconds, 'message_expiration_disabled');
}
- $this->dispatcher->dispatch(Room::EVENT_AFTER_SET_EXPIRE_DATE, $event);
+ $this->dispatcher->dispatch(Room::EVENT_AFTER_SET_MESSAGE_EXPIRATION, $event);
}
private function addMessageExpirationSystemMessage(Room $room, Participant $participant, int $seconds, string $message): void {