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:
1 parent
8437e263af
commit
4459eaeb9d
1 file changed
+1
-1
@@ -88,7 +88,7 @@ export function useCallViewKeyboardShortcuts(
|
||||
window,
|
||||
"blur",
|
||||
useCallback(() => {
|
||||
if (spacebarHeld) {
|
||||
if (spacebarHeld.current) {
|
||||
spacebarHeld.current = false;
|
||||
setMicrophoneMuted(true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user