Crypto in vc

This commit is contained in:
2026-08-28 15:20:38 +02:00
parent cd564bec99
commit d5dc9d82d7
7 changed files with 246 additions and 21 deletions
+5 -1
View File
@@ -171,7 +171,11 @@ export default class Enclave<P = Page> {
if (!server || channel.kind !== "voice") return;
server.voiceJoin = (pin, channelId) => {
invoke("connect_to_vc", { hostname: server.hostname, pin, channelId })
invoke("connect_to_vc", {
hostname: server.hostname,
pin,
sharedSecret: server.websocket?.sharedSecret,
})
.then(() => {
server.isInVoiceChat = true;
server.voiceChannelId = channelId;
+1 -1
View File
@@ -18,7 +18,7 @@ export default class EnclaveWebSocket {
private sendCounter = 0n;
private recvCounter = 0n;
private sharedSecret: Uint8Array | null = null;
public sharedSecret: Uint8Array | null = null;
private readonly handshakeReady: Promise<void>;
private resolveHandshake!: () => void;