call: lint/format cleanup for lotus EC wiring
Resolve the eslint/prettier failures from the previous commit (non-blocking in CI, but real): drop the banned `void` operator on fire-and-forget transport.send().catch() calls, prefix the now-unused _denoiseNativeNS param, and run prettier on the touched files. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -43,9 +43,7 @@ export function LotusDecorationPusher({ callEmbed }: { callEmbed: CallEmbed }):
|
||||
map.current.forEach((url, userId) => {
|
||||
decorations[userId] = url;
|
||||
});
|
||||
void callEmbed.call.transport
|
||||
.send('io.lotus.decorations', { decorations })
|
||||
.catch(() => undefined);
|
||||
callEmbed.call.transport.send('io.lotus.decorations', { decorations }).catch(() => undefined);
|
||||
}, [callEmbed]);
|
||||
|
||||
const schedulePush = useCallback(() => {
|
||||
|
||||
@@ -350,16 +350,12 @@ export class CallControl extends EventEmitter implements CallControlState {
|
||||
// DOM-poking tiles. EC's layout honors it — including surfacing the camera
|
||||
// alongside a screenshare (A5) — and it's version-stable. The fork always
|
||||
// acks, so the promise resolves regardless.
|
||||
void this.call.transport
|
||||
.send('io.lotus.focus_participant', { userId })
|
||||
.catch(() => undefined);
|
||||
this.call.transport.send('io.lotus.focus_participant', { userId }).catch(() => undefined);
|
||||
}
|
||||
|
||||
/** [lotus #4] Clear any manual spotlight pin and return to speaker-follows. */
|
||||
public clearFocusParticipant(): void {
|
||||
void this.call.transport
|
||||
.send('io.lotus.focus_participant', { userId: null })
|
||||
.catch(() => undefined);
|
||||
this.call.transport.send('io.lotus.focus_participant', { userId: null }).catch(() => undefined);
|
||||
}
|
||||
|
||||
public dispose() {
|
||||
|
||||
@@ -138,7 +138,9 @@ export class CallEmbed {
|
||||
themeKind: ElementCallThemeKind,
|
||||
denoiseMode: NoiseSuppressionMode = 'browser',
|
||||
denoiseModel: string = 'rnnoise',
|
||||
denoiseNativeNS: boolean = true,
|
||||
// [lotus] no longer used by the in-source denoise path; kept positionally
|
||||
// for callers. Prefixed with _ to satisfy no-unused-vars.
|
||||
_denoiseNativeNS: boolean = true,
|
||||
denoiseGate: boolean = false,
|
||||
denoiseGateThreshold: number = -45,
|
||||
initialAudio = true,
|
||||
|
||||
Reference in New Issue
Block a user