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:
parent
8437e263af
commit
4459eaeb9d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue