mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-18 02:32:27 +00:00
review: remove not yet used case ErrorCategory in rich error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user