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()