mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +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 { Banner } from "./Banner";
|
||||||
import styles from "./E2EEBanner.module.css";
|
import styles from "./E2EEBanner.module.css";
|
||||||
import { ReactComponent as LockOffIcon } from "./icons/LockOff.svg";
|
import { ReactComponent as LockOffIcon } from "./icons/LockOff.svg";
|
||||||
import { useEnableE2EE } from "./e2ee/sharedKeyManagement";
|
import { useEnableE2EE } from "./e2ee/e2eeHooks";
|
||||||
|
|
||||||
export const E2EEBanner = () => {
|
export const E2EEBanner = () => {
|
||||||
const e2eeEnabled = useEnableE2EE();
|
const e2eeEnabled = useEnableE2EE();
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import styles from "./CallList.module.css";
|
|||||||
import { getRoomUrl } from "../matrix-utils";
|
import { getRoomUrl } from "../matrix-utils";
|
||||||
import { Body } from "../typography/Typography";
|
import { Body } from "../typography/Typography";
|
||||||
import { GroupCallRoom } from "./useGroupCallRooms";
|
import { GroupCallRoom } from "./useGroupCallRooms";
|
||||||
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
|
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
|
||||||
|
|
||||||
interface CallListProps {
|
interface CallListProps {
|
||||||
rooms: GroupCallRoom[];
|
rooms: GroupCallRoom[];
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import { useEnableSPAE2EE, useOptInAnalytics } from "../settings/useSetting";
|
|||||||
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
|
import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
|
||||||
import { E2EEBanner } from "../E2EEBanner";
|
import { E2EEBanner } from "../E2EEBanner";
|
||||||
import { setLocalStorageItem } from "../useLocalStorage";
|
import { setLocalStorageItem } from "../useLocalStorage";
|
||||||
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
|
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
client: MatrixClient;
|
client: MatrixClient;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ import { AnalyticsNotice } from "../analytics/AnalyticsNotice";
|
|||||||
import { useEnableSPAE2EE, useOptInAnalytics } from "../settings/useSetting";
|
import { useEnableSPAE2EE, useOptInAnalytics } from "../settings/useSetting";
|
||||||
import { Config } from "../config/Config";
|
import { Config } from "../config/Config";
|
||||||
import { E2EEBanner } from "../E2EEBanner";
|
import { E2EEBanner } from "../E2EEBanner";
|
||||||
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
|
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
|
||||||
import { setLocalStorageItem } from "../useLocalStorage";
|
import { setLocalStorageItem } from "../useLocalStorage";
|
||||||
|
|
||||||
export const UnauthenticatedView: FC = () => {
|
export const UnauthenticatedView: FC = () => {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ import {
|
|||||||
useIsRoomE2EE,
|
useIsRoomE2EE,
|
||||||
useEnableEmbeddedE2EE,
|
useEnableEmbeddedE2EE,
|
||||||
useEnableE2EE,
|
useEnableE2EE,
|
||||||
} from "../e2ee/sharedKeyManagement";
|
} from "../e2ee/e2eeHooks";
|
||||||
import { useEnableSPAE2EE } from "../settings/useSetting";
|
import { useEnableSPAE2EE } from "../settings/useSetting";
|
||||||
import { E2EEConfig, E2EEMode } from "../livekit/useLiveKit";
|
import { E2EEConfig, E2EEMode } from "../livekit/useLiveKit";
|
||||||
import { useUrlParams } from "../UrlParams";
|
import { useUrlParams } from "../UrlParams";
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ import { E2EELock } from "../E2EELock";
|
|||||||
import { useWakeLock } from "../useWakeLock";
|
import { useWakeLock } from "../useWakeLock";
|
||||||
import { useMergedRefs } from "../useMergedRefs";
|
import { useMergedRefs } from "../useMergedRefs";
|
||||||
import { MuteStates } from "./MuteStates";
|
import { MuteStates } from "./MuteStates";
|
||||||
import { useIsRoomE2EE } from "../e2ee/sharedKeyManagement";
|
import { useIsRoomE2EE } from "../e2ee/e2eeHooks";
|
||||||
import { useOpenIDSFU } from "../livekit/openIDSFU";
|
import { useOpenIDSFU } from "../livekit/openIDSFU";
|
||||||
import { ECConnectionState } from "../livekit/useECConnectionState";
|
import { ECConnectionState } from "../livekit/useECConnectionState";
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { Modal, ModalContent, ModalProps } from "../Modal";
|
|||||||
import { CopyButton } from "../button";
|
import { CopyButton } from "../button";
|
||||||
import { getRoomUrl } from "../matrix-utils";
|
import { getRoomUrl } from "../matrix-utils";
|
||||||
import styles from "./InviteModal.module.css";
|
import styles from "./InviteModal.module.css";
|
||||||
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
|
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
|
||||||
|
|
||||||
interface Props extends Omit<ModalProps, "title" | "children"> {
|
interface Props extends Omit<ModalProps, "title" | "children"> {
|
||||||
roomId: string;
|
roomId: string;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { Body, Link } from "../typography/Typography";
|
|||||||
import { useLocationNavigation } from "../useLocationNavigation";
|
import { useLocationNavigation } from "../useLocationNavigation";
|
||||||
import { MatrixInfo, VideoPreview } from "./VideoPreview";
|
import { MatrixInfo, VideoPreview } from "./VideoPreview";
|
||||||
import { MuteStates } from "./MuteStates";
|
import { MuteStates } from "./MuteStates";
|
||||||
import { useRoomSharedKey } from "../e2ee/sharedKeyManagement";
|
import { useRoomSharedKey } from "../e2ee/e2eeHooks";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
matrixInfo: MatrixInfo;
|
matrixInfo: MatrixInfo;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import type { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall";
|
|||||||
import { setLocalStorageItem } from "../useLocalStorage";
|
import { setLocalStorageItem } from "../useLocalStorage";
|
||||||
import { isLocalRoomId, createRoom, roomNameFromRoomId } from "../matrix-utils";
|
import { isLocalRoomId, createRoom, roomNameFromRoomId } from "../matrix-utils";
|
||||||
import { useEnableSPAE2EE } from "../settings/useSetting";
|
import { useEnableSPAE2EE } from "../settings/useSetting";
|
||||||
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/sharedKeyManagement";
|
import { getRoomSharedKeyLocalStorageKey } from "../e2ee/e2eeHooks";
|
||||||
|
|
||||||
export type GroupCallLoaded = {
|
export type GroupCallLoaded = {
|
||||||
kind: "loaded";
|
kind: "loaded";
|
||||||
|
|||||||
Reference in New Issue
Block a user