mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
lint
This commit is contained in:
@@ -59,7 +59,7 @@ export function CallEventAudioRenderer({
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (audioEngineRef.current && previousRaisedHandCount < raisedHandCount) {
|
if (audioEngineRef.current && previousRaisedHandCount < raisedHandCount) {
|
||||||
audioEngineRef.current.playSound("raiseHand");
|
void audioEngineRef.current.playSound("raiseHand");
|
||||||
}
|
}
|
||||||
}, [audioEngineRef, previousRaisedHandCount, raisedHandCount]);
|
}, [audioEngineRef, previousRaisedHandCount, raisedHandCount]);
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ export function CallEventAudioRenderer({
|
|||||||
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
|
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
|
||||||
)
|
)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
audioEngineRef.current?.playSound("join");
|
void audioEngineRef.current?.playSound("join");
|
||||||
});
|
});
|
||||||
|
|
||||||
const leftSub = vm.memberChanges
|
const leftSub = vm.memberChanges
|
||||||
@@ -85,7 +85,7 @@ export function CallEventAudioRenderer({
|
|||||||
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
|
throttle(() => interval(THROTTLE_SOUND_EFFECT_MS)),
|
||||||
)
|
)
|
||||||
.subscribe(() => {
|
.subscribe(() => {
|
||||||
audioEngineRef.current?.playSound("left");
|
void audioEngineRef.current?.playSound("left");
|
||||||
});
|
});
|
||||||
|
|
||||||
return (): void => {
|
return (): void => {
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ const TestComponent: FC = () => {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<button onClick={() => audioCtx.playSound("aSound")}>Valid sound</button>
|
<button onClick={async () => audioCtx.playSound("aSound")}>Valid sound</button>
|
||||||
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any*/}
|
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any*/}
|
||||||
<button onClick={() => audioCtx.playSound("not-valid" as any)}>
|
<button onClick={async () => audioCtx.playSound("not-valid" as any)}>
|
||||||
Invalid sound
|
Invalid sound
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user