Add more hook dependencies
This commit is contained in:
parent
9ba12da544
commit
f4ba315cef
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ export function usePTT(client, groupCall, userMediaFeeds) {
|
|||
window.removeEventListener("keyup", onKeyUp);
|
||||
window.removeEventListener("blur", onBlur);
|
||||
};
|
||||
}, [activeSpeakerUserId, isAdmin, talkOverEnabled, pttButtonHeld]);
|
||||
}, [groupCall, startTalking, stopTalking, activeSpeakerUserId, isAdmin, talkOverEnabled, pttButtonHeld]);
|
||||
|
||||
const setTalkOverEnabled = useCallback((talkOverEnabled) => {
|
||||
setState((prevState) => ({
|
||||
|
|
Loading…
Reference in a new issue