Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,12 @@ const useLayercodeAgent = (
clientRef.current.mute();
}, []);

const unmute = useCallback(() => {
const unmute = useCallback(async () => {
if (!clientRef.current) {
console.warn('[Layercode] unmute() called but no client exists. Did you call connect() first?');
return;
}
clientRef.current.unmute();
await clientRef.current.unmute();
}, []);

const setAudioInput = useCallback(
Expand Down