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