sharedKeyManagement.ts -> e2eeHooks.ts

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-08-28 10:46:02 +02:00
parent f279bd69d7
commit 127e8c9103
10 changed files with 9 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ 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 "./e2ee/sharedKeyManagement";
import { useEnableE2EE } from "./e2ee/e2eeHooks";
export const E2EEBanner = () => {
const e2eeEnabled = useEnableE2EE();

View File

@@ -25,7 +25,7 @@ import styles from "./CallList.module.css";
import { getRoomUrl } from "../matrix-utils";
import { Body } from "../typography/Typography";
import { GroupCallRoom } from "./useGroupCallRooms";
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
interface CallListProps {
rooms: GroupCallRoom[];

View File

@@ -42,7 +42,7 @@ import { useEnableSPAE2EE, useOptInAnalytics } from "../settings/useSetting";
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { E2EEBanner } from "../E2EEBanner";
import { setLocalStorageItem } from "../useLocalStorage";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
interface Props {
client: MatrixClient;

View File

@@ -43,7 +43,7 @@ import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
import { useEnableSPAE2EE, useOptInAnalytics } from "../settings/useSetting";
import { Config } from "../config/Config";
import { E2EEBanner } from "../E2EEBanner";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
import { setLocalStorageItem } from "../useLocalStorage";
export const UnauthenticatedView: FC = () => {

View File

@@ -42,7 +42,7 @@ import {
useIsRoomE2EE,
useEnableEmbeddedE2EE,
useEnableE2EE,
} from "../e2ee/sharedKeyManagement";
} from "../e2ee/e2eeHooks";
import { useEnableSPAE2EE } from "../settings/useSetting";
import { E2EEConfig, E2EEMode } from "../livekit/useLiveKit";
import { useUrlParams } from "../UrlParams";

View File

@@ -76,7 +76,7 @@ import { E2EELock } from "../E2EELock";
import { useWakeLock } from "../useWakeLock";
import { useMergedRefs } from "../useMergedRefs";
import { MuteStates } from "./MuteStates";
import { useIsRoomE2EE } from "../e2ee/sharedKeyManagement";
import { useIsRoomE2EE } from "../e2ee/e2eeHooks";
import { useOpenIDSFU } from "../livekit/openIDSFU";
import { ECConnectionState } from "../livekit/useECConnectionState";

View File

@@ -21,7 +21,7 @@ import { Modal, ModalContent, ModalProps } from "../Modal";
import { CopyButton } from "../button";
import { getRoomUrl } from "../matrix-utils";
import styles from "./InviteModal.module.css";
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
interface Props extends Omit<ModalProps, "title" | "children"> {
roomId: string;

View File

@@ -26,7 +26,7 @@ import { Body, Link } from "../typography/Typography";
import { useLocationNavigation } from "../useLocationNavigation";
import { MatrixInfo, VideoPreview } from "./VideoPreview";
import { MuteStates } from "./MuteStates";
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
interface Props {
matrixInfo: MatrixInfo;

View File

@@ -27,7 +27,7 @@ import type { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall";
import { setLocalStorageItem } from "../useLocalStorage";
import { isLocalRoomId, createRoom, roomNameFromRoomId } from "../matrix-utils";
import { useEnableSPAE2EE } from "../settings/useSetting";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
export type GroupCallLoaded = {
kind: "loaded";