From 506b363f381d5a2d345617ffee1baee60a59d2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 11 Aug 2023 13:14:50 +0200 Subject: [PATCH] Update E2EE texts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/E2EEBanner.tsx | 4 ++++ src/E2EELock.tsx | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/E2EEBanner.tsx b/src/E2EEBanner.tsx index 957813e3..774f3582 100644 --- a/src/E2EEBanner.tsx +++ b/src/E2EEBanner.tsx @@ -19,8 +19,12 @@ import { Trans } from "react-i18next"; import { Banner } from "./Banner"; import styles from "./E2EEBanner.module.css"; import { ReactComponent as LockOffIcon } from "./icons/LockOff.svg"; +import { useEnableE2EE } from "./settings/useSetting"; export const E2EEBanner = () => { + const [e2eeEnabled] = useEnableE2EE(); + if (e2eeEnabled) return null; + return (
diff --git a/src/E2EELock.tsx b/src/E2EELock.tsx index d032b036..9a9a55e9 100644 --- a/src/E2EELock.tsx +++ b/src/E2EELock.tsx @@ -26,10 +26,7 @@ import { TooltipTrigger } from "./Tooltip"; export const E2EELock = () => { const { t } = useTranslation(); const tooltip = useCallback( - () => - t( - "Element Call is temporarily not end-to-end encrypted while we test scalability." - ), + () => t("This call is not end-to-end encrypted."), [t] );