feat(ui-flow): handle restart-screen-share IPC for stream recovery

Wire restart-screen-share to platform.refreshScreenSharePreview so the
renderer can restart local capture or drop stale remote preview tiles.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 16:32:17 -04:00
co-authored by Cursor
parent 3dd16046ab
commit 65c9eef2dd
+5
View File
@@ -922,6 +922,11 @@ async function dispatchUiMessage (platform, msg, hooks = {}) {
}
return true
}
if (t === 'restart-screen-share') {
await platform.refreshScreenSharePreview(msg.userId)
pushState()
return true
}
if (t === 'set-voice-mute') {
try {
await platform.setVoiceMute({ muted: msg.muted, deafened: msg.deafened })