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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user