refac
This commit is contained in:
1 parent
09f6d7ba57
commit
ee9db91df0
1 file changed
+7
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user