mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-27 17:04:57 -05:00
refac
This commit is contained in:
@@ -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