mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
move prefetch sounds to fix hot reload
This commit is contained in:
@@ -10,7 +10,8 @@ import { ReactNode, useDeferredValue, useEffect, useState } from "react";
|
||||
import { useReactions } from "../useReactions";
|
||||
import { playReactionsSound, useSetting } from "../settings/settings";
|
||||
import { GenericReaction, ReactionSet } from "../reactions";
|
||||
import { prefetchSounds, useAudioContext } from "../useAudioContext";
|
||||
import { useAudioContext } from "../useAudioContext";
|
||||
import { prefetchSounds } from "../soundUtils";
|
||||
import { useLatest } from "../useLatest";
|
||||
|
||||
const soundMap = Object.fromEntries([
|
||||
@@ -66,5 +67,5 @@ export function ReactionsAudioRenderer(): ReactNode {
|
||||
}
|
||||
}
|
||||
}, [audioEngineRef, shouldPlay, oldReactions, reactions]);
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user