mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
sharedKeyManagement.ts -> e2eeHooks.ts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user