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 <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 17:30:38 -04:00
co-authored by Cursor
parent 32980958d8
commit 6191737259
+13
View File
@@ -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()