fixup! ✨(frontend) add open-in-separate-window control for screen shares

This commit is contained in:
Ovgodd
2026-10-07 15:48:11 +02:00
parent b345e13689
commit 5191147d1c
@@ -89,7 +89,13 @@ export const useScreenSharePopout = ({
reportError('generic_failure', error, {
context: 'screen_share_popout_init',
})
next.close()
// The open may already have cleared the pin and stored the window.
// Closing it alone would leave the meeting unpinned.
if (screenSharePopoutStore.entry) {
closeScreenSharePopout({ restorePin: true })
} else {
next.close()
}
}
}, [announce, getVideoElement, release, t, title, trackSid, windowName])