We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f6d7b commit ee9db91Copy full SHA for ee9db91
1 file changed
src/lib/components/chat/Chat.svelte
@@ -1232,8 +1232,13 @@
1232
desktopEvent.set(null);
1233
1234
if (event.type === 'call') {
1235
- showCallOverlay.set(true);
1236
- showControls.set(true);
+ // Defer to next macrotask so the call overlay isn't clobbered by
+ // showControlsSubscribe's initial callback (value=false → set(false))
1237
+ // which runs as a pending microtask after this function.
1238
+ setTimeout(() => {
1239
+ showCallOverlay.set(true);
1240
+ showControls.set(true);
1241
+ }, 0);
1242
} else if (event.type === 'query') {
1243
const query = event.data?.query;
1244
const eventFiles = event.data?.files;
0 commit comments