diff options
Diffstat (limited to 'lib/Chat/MessageParser.php')
-rw-r--r-- | lib/Chat/MessageParser.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Chat/MessageParser.php b/lib/Chat/MessageParser.php index eeb3c7de1..ba46c718b 100644 --- a/lib/Chat/MessageParser.php +++ b/lib/Chat/MessageParser.php @@ -41,6 +41,8 @@ use OCP\IUserManager; */ class MessageParser { + public const EVENT_MESSAGE_PARSE = self::class . '::parseMessage'; + /** @var IEventDispatcher */ private $dispatcher; @@ -71,7 +73,7 @@ class MessageParser { $this->setActor($message); $event = new ChatMessageEvent($message); - $this->dispatcher->dispatch(self::class . '::parseMessage', $event); + $this->dispatcher->dispatch(self::EVENT_MESSAGE_PARSE, $event); } protected function setActor(Message $message): void { |