From cd760ebc3cd71f55ef5751badb7ee7a044a9adb0 Mon Sep 17 00:00:00 2001 From: Lotus CI Date: Sun, 18 Oct 2026 00:24:03 -0400 Subject: [PATCH] fix(dev): ML noise suppression works on npm start; no lotusTheme warning per call (#293) The denoise worklets/wasm/models were only copied into dist/ by the lotus-denoise closeBundle hook, so on the dev server the call frame got the SPA fallback for them and silently used the raw mic. The asset list is now shared (denoiseSources) between that copy and a dev-server middleware serving the same paths. Also send lotusTheme=true with lotusTransparent, which the fork warned about in every call. Fixes #293 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5 --- src/app/plugins/call/CallEmbed.ts | 3 + vite.config.js | 137 ++++++++++++++++-------------- 2 files changed, 76 insertions(+), 64 deletions(-) diff --git a/src/app/plugins/call/CallEmbed.ts b/src/app/plugins/call/CallEmbed.ts index 0ef609645..fafe05773 100644 --- a/src/app/plugins/call/CallEmbed.ts +++ b/src/app/plugins/call/CallEmbed.ts @@ -218,6 +218,9 @@ export class CallEmbed { // - transparent background so the room wallpaper shows through natively lotusCallState: 'true', lotusTransparent: 'true', + // [Gitea #293] the fork applies the theme with transparency anyway, and + // warned in every call that lotusTheme wasn't set + lotusTheme: 'true', // [Gitea #43] The fork hides its own footer (we draw the call bar) and // sets its root color-scheme from the theme, instead of us injecting CSS. lotusHostControls: 'true', diff --git a/vite.config.js b/vite.config.js index faa37921d..0d6b2ef7b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -87,97 +87,106 @@ function copyPdfWorker() { }; } -// Lotus ML noise suppression: ship the RNNoise worklet/wasm + our getUserMedia -// shim alongside the vendored Element Call bundle, and inject the shim