Add more hook dependencies

This commit is contained in:
David Baker 2022-05-06 21:33:49 +01:00
parent 9ba12da544
commit f4ba315cef

View file

@ -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) => ({