diff --git a/library/Notifications/Model/Channel.php b/library/Notifications/Model/Channel.php index a4f0bb951..39ada9228 100644 --- a/library/Notifications/Model/Channel.php +++ b/library/Notifications/Model/Channel.php @@ -92,18 +92,7 @@ public static function fetchChannelTypes(Connection $conn): array { $channels = []; foreach (Channel::on($conn) as $channel) { - switch ($channel->type) { - case 'rocketchat': - $name = 'Rocket.Chat'; - break; - case 'email': - $name = t('E-Mail'); - break; - default: - $name = $channel->type; - } - - $channels[$channel->id] = $name; + $channels[$channel->id] = ucfirst($channel->type); } return $channels;