From f38adf12d9a91fc2f07bb1320fd6650fe3ca58e3 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 28 Feb 2025 12:25:35 +0100 Subject: [PATCH] review: remove not yet used case ErrorCategory in rich error --- src/RichError.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/RichError.tsx b/src/RichError.tsx index 82852258..1525f153 100644 --- a/src/RichError.tsx +++ b/src/RichError.tsx @@ -9,7 +9,6 @@ import { Trans, useTranslation } from "react-i18next"; import { ErrorIcon, HostIcon, - OfflineIcon, PopOutIcon, } from "@vector-im/compound-design-tokens/assets/web/icons"; @@ -85,10 +84,6 @@ const GenericECError: FC<{ error: ElementCallError }> = ({ title = t("error.call_is_not_supported"); icon = HostIcon; break; - case ErrorCategory.NETWORK_CONNECTIVITY: - title = t("error.connection_lost"); - icon = OfflineIcon; - break; default: title = t("error.generic"); icon = ErrorIcon;