This commit is contained in:
Timothy Jaeryang Baek
2026-04-11 17:06:49 -06:00
parent 09f6d7ba57
commit ee9db91df0
+7 -2
View File
@@ -1232,8 +1232,13 @@
desktopEvent.set(null);
if (event.type === 'call') {
showCallOverlay.set(true);
showControls.set(true);
// Defer to next macrotask so the call overlay isn't clobbered by
// showControlsSubscribe's initial callback (value=false → set(false))
// which runs as a pending microtask after this function.
setTimeout(() => {
showCallOverlay.set(true);
showControls.set(true);
}, 0);
} else if (event.type === 'query') {
const query = event.data?.query;
const eventFiles = event.data?.files;