Fix audio mute on window blur

https://github.com/vector-im/element-call/pull/1015/files missed a
change of spacebarHeld to a ref.
This commit is contained in:
David Baker 2023-04-21 10:18:43 +01:00
parent 8437e263af
commit 4459eaeb9d

View file

@ -88,7 +88,7 @@ export function useCallViewKeyboardShortcuts(
window,
"blur",
useCallback(() => {
if (spacebarHeld) {
if (spacebarHeld.current) {
spacebarHeld.current = false;
setMicrophoneMuted(true);
}