From 61917372596e28988e9d48c185ba9e9a52889a7c Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Tue, 2 Jun 2026 17:30:38 -0400 Subject: [PATCH] Add IPC route for stage speaker to DM voice bridge. Dispatches bridge-stage-speaker-to-dm and composer focus after DM open. Co-authored-by: Cursor --- index.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/index.js b/index.js index fe051a5..d2dadbd 100644 --- a/index.js +++ b/index.js @@ -1405,6 +1405,19 @@ async function dispatchUiMessage (platform, msg, hooks = {}) { } return true } + if (t === 'bridge-stage-speaker-to-dm') { + const out = await platform.bridgeStageSpeakerToDmVoice({ + userId: msg.userId, + displayName: msg.displayName, + startVoiceCall: !!msg.startVoiceCall + }) + pushState() + if (platform.activeChannelId) { + send({ type: 'composer-focus-channel', channelId: platform.activeChannelId }) + } + send({ type: 'dm-stage-bridge-complete', ...out }) + return true + } if (t === 'consume-dm-composer-prefill') { platform.consumeDmComposerPrefill() pushState()