From 18fc4baf111ef0b0fcf5ce4faf75648649a92734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 Mar 2022 20:17:20 +0100 Subject: [PATCH] Remove events from supportsFastSelect() if the default is `false` --- .../message/type/TemproomInvitedMessageType.class.php | 7 +------ files/lib/system/message/type/WhisperMessageType.class.php | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/files/lib/system/message/type/TemproomInvitedMessageType.class.php b/files/lib/system/message/type/TemproomInvitedMessageType.class.php index 771eb76..5070c69 100644 --- a/files/lib/system/message/type/TemproomInvitedMessageType.class.php +++ b/files/lib/system/message/type/TemproomInvitedMessageType.class.php @@ -106,11 +106,6 @@ public function canSeeInLog(Message $message, Room $room, ?UserProfile $user = n */ public function supportsFastSelect(): bool { - $parameters = [ - 'result' => false, - ]; - EventHandler::getInstance()->fireAction($this, 'supportsFastSelect', $parameters); - - return $parameters['result']; + return false; } } diff --git a/files/lib/system/message/type/WhisperMessageType.class.php b/files/lib/system/message/type/WhisperMessageType.class.php index b4ef97c..0ec6a78 100644 --- a/files/lib/system/message/type/WhisperMessageType.class.php +++ b/files/lib/system/message/type/WhisperMessageType.class.php @@ -133,11 +133,6 @@ public function canSeeInLog(Message $message, Room $room, ?UserProfile $user = n */ public function supportsFastSelect(): bool { - $parameters = [ - 'result' => false, - ]; - EventHandler::getInstance()->fireAction($this, 'supportsFastSelect', $parameters); - - return $parameters['result']; + return false; } }