Decode passwords as buffers if we can

This commit is contained in:
David Baker
2023-10-06 18:24:39 +01:00
parent e2abeba194
commit abb80b0d31
2 changed files with 3 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ import {
} from "./useECConnectionState";
export type E2EEConfig = {
sharedKey: string;
sharedKey: Uint8Array | string;
};
interface UseLivekitResult {

View File

@@ -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);