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:
Raven Scott
2026-05-23 13:02:46 -04:00
co-authored by Cursor
parent a79cf8f504
commit 9d344ca130
+1 -2
View File
@@ -587,11 +587,10 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
if (t === 'leave-voice') {
const payload = await platform.leaveVoiceChannel()
resetVoiceCaptureTrace()
pushState()
if (!payload) {
log.debug('leave-voice noop', { reason: 'not in voice channel' })
return true
}
pushState()
return true
}
if (t === 'start-screen-share') {