From 5cd8c0538e860317d88ddb8028e82a8fe8c2d14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Wed, 16 Aug 2023 13:59:41 +0200 Subject: [PATCH] Revert changes to `JoinExistingCallModal` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/home/JoinExistingCallModal.tsx | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/home/JoinExistingCallModal.tsx b/src/home/JoinExistingCallModal.tsx index 26b3bf10..dfa6b095 100644 --- a/src/home/JoinExistingCallModal.tsx +++ b/src/home/JoinExistingCallModal.tsx @@ -21,7 +21,6 @@ import { Modal, ModalContent } from "../Modal"; import { Button } from "../button"; import { FieldRow } from "../input/Input"; import styles from "./JoinExistingCallModal.module.css"; -import { useEnableE2EE } from "../settings/useSetting"; interface Props { onJoin: (e: PressEvent) => void; @@ -31,36 +30,21 @@ interface Props { } export function JoinExistingCallModal({ onJoin, onClose, ...rest }: Props) { const { t } = useTranslation(); - const [e2eeEnabled] = useEnableE2EE(); return ( -

- {e2eeEnabled - ? t( - "This call already exists, please join using a URL retrieved using the in-app copy link button" - ) - : t("This call already exists, would you like to join?")} -

+

{t("This call already exists, would you like to join?")}

- {e2eeEnabled ? ( - - ) : ( - <> - - - - )} + +