We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cac89b8 commit a6e0e67Copy full SHA for a6e0e67
frontend/src/Context/SessionProvider/session.tsx
@@ -397,11 +397,11 @@ const SessionProvider = ({ children }: SessionProviderProps): ReactElement => {
397
* Force mutes a participant.
398
* @param {Stream} stream - The stream that is going to be muted.
399
*/
400
- const forceMute = useCallback(async (stream: Stream) => {
+ const forceMute = useCallback((stream: Stream) => {
401
if (vonageVideoClient.current) {
402
void vonageVideoClient.current.forceMuteStream(stream);
403
}
404
- }, []);
+ }, []) as (stream: Stream) => Promise<void>;
405
406
/**
407
* Publishes a stream to the session.
0 commit comments