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