Merge pull request #1022 from vector-im/dbkr/fix_mute_on_blur

Fix audio mute on window blur
This commit is contained in:
David Baker 2023-04-21 10:22:04 +01:00 committed by GitHub
commit a9e63ddbcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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