From 161e876df8ea650263f5af879b8f7ea75457abb3 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:09:37 +0100 Subject: [PATCH] fix: IncomingCallModal calls connectFn directly for iOS gesture context --- packages/web/src/components/voice/IncomingCallModal.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/web/src/components/voice/IncomingCallModal.tsx b/packages/web/src/components/voice/IncomingCallModal.tsx index 76d4758d..0ed63579 100644 --- a/packages/web/src/components/voice/IncomingCallModal.tsx +++ b/packages/web/src/components/voice/IncomingCallModal.tsx @@ -39,7 +39,12 @@ export function IncomingCallModal() { const handleAccept = () => { if (timerRef.current) clearTimeout(timerRef.current); - wsSend({ type: 'dm_call_accept', dmChannelId: incomingCall.dmChannelId }, getChannelOrigin(incomingCall.dmChannelId)); + const dmChannelId = incomingCall.dmChannelId; + const origin = getChannelOrigin(dmChannelId); + wsSend({ type: 'dm_call_accept', dmChannelId }, origin); + // Connect directly within gesture context (required for iOS audio permission) + const connectFn = useVoiceStore.getState().connectFn; + if (connectFn) connectFn(dmChannelId, true); }; const handleDecline = () => {