mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-02 19:49:23 +00:00
Decode passwords as buffers if we can
This commit is contained in:
@@ -41,7 +41,7 @@ import {
|
|||||||
} from "./useECConnectionState";
|
} from "./useECConnectionState";
|
||||||
|
|
||||||
export type E2EEConfig = {
|
export type E2EEConfig = {
|
||||||
sharedKey: string;
|
sharedKey: Uint8Array | string;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface UseLivekitResult {
|
interface UseLivekitResult {
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ import { useRoomAvatar } from "./useRoomAvatar";
|
|||||||
import { useRoomName } from "./useRoomName";
|
import { useRoomName } from "./useRoomName";
|
||||||
import { useJoinRule } from "./useJoinRule";
|
import { useJoinRule } from "./useJoinRule";
|
||||||
import { InviteModal } from "./InviteModal";
|
import { InviteModal } from "./InviteModal";
|
||||||
|
import { useE2eeConfig } from "../useE2eeConfig";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
@@ -254,10 +255,7 @@ export function GroupCallView({
|
|||||||
|
|
||||||
const [e2eeEnabled] = useEnableE2EE();
|
const [e2eeEnabled] = useEnableE2EE();
|
||||||
|
|
||||||
const e2eeConfig = useMemo(
|
const e2eeConfig = useE2eeConfig(e2eeSharedKey);
|
||||||
() => (e2eeSharedKey ? { sharedKey: e2eeSharedKey } : undefined),
|
|
||||||
[e2eeSharedKey]
|
|
||||||
);
|
|
||||||
|
|
||||||
const onReconnect = useCallback(() => {
|
const onReconnect = useCallback(() => {
|
||||||
setLeft(false);
|
setLeft(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user