diff options
Diffstat (limited to 'lib/Files/Listener.php')
-rw-r--r-- | lib/Files/Listener.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Files/Listener.php b/lib/Files/Listener.php index 7b71ef820..d7cb4e8db 100644 --- a/lib/Files/Listener.php +++ b/lib/Files/Listener.php @@ -72,7 +72,7 @@ class Listener { $event->setCancelJoin(true); } }; - $dispatcher->addListener(Room::class . '::preJoinRoom', $listener); + $dispatcher->addListener(Room::EVENT_BEFORE_ROOM_CONNECT, $listener); $listener = static function(JoinRoomGuestEvent $event) { /** @var self $listener */ @@ -84,7 +84,7 @@ class Listener { $event->setCancelJoin( true); } }; - $dispatcher->addListener(Room::class . '::preJoinRoomGuest', $listener); + $dispatcher->addListener(Room::EVENT_BEFORE_GUEST_CONNECT, $listener); } /** |