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:
@@ -88,7 +88,7 @@ export function useCallViewKeyboardShortcuts(
|
|||||||
window,
|
window,
|
||||||
"blur",
|
"blur",
|
||||||
useCallback(() => {
|
useCallback(() => {
|
||||||
if (spacebarHeld) {
|
if (spacebarHeld.current) {
|
||||||
spacebarHeld.current = false;
|
spacebarHeld.current = false;
|
||||||
setMicrophoneMuted(true);
|
setMicrophoneMuted(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user