Always push UI state after leave-voice IPC.
Ensures voice chrome clears even when platform leave is a noop. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -587,11 +587,10 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
|
|||||||
if (t === 'leave-voice') {
|
if (t === 'leave-voice') {
|
||||||
const payload = await platform.leaveVoiceChannel()
|
const payload = await platform.leaveVoiceChannel()
|
||||||
resetVoiceCaptureTrace()
|
resetVoiceCaptureTrace()
|
||||||
|
pushState()
|
||||||
if (!payload) {
|
if (!payload) {
|
||||||
log.debug('leave-voice noop', { reason: 'not in voice channel' })
|
log.debug('leave-voice noop', { reason: 'not in voice channel' })
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
pushState()
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
if (t === 'start-screen-share') {
|
if (t === 'start-screen-share') {
|
||||||
|
|||||||
Reference in New Issue
Block a user