From ebe16af809da0800f30e644980f64acaea4ab0e0 Mon Sep 17 00:00:00 2001 From: Izak Glasencnik Date: Tue, 22 Feb 2022 17:09:03 +0100 Subject: [PATCH] Fix initial volume value if value is 0 --- .../video-menu/components/web/ParticipantContextMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.js b/react/features/video-menu/components/web/ParticipantContextMenu.js index 189b819dd..d5365e01c 100644 --- a/react/features/video-menu/components/web/ParticipantContextMenu.js +++ b/react/features/video-menu/components/web/ParticipantContextMenu.js @@ -138,7 +138,7 @@ const ParticipantContextMenu = ({ const { disableKick, disableGrantModerator } = remoteVideoMenu; const { participantsVolume } = useSelector(state => state['features/filmstrip']); const _volume = (participant?.local ?? true ? undefined - : participant?.id ? participantsVolume[participant?.id] : undefined) || 1; + : participant?.id ? participantsVolume[participant?.id] : undefined) ?? 1; const isBreakoutRoom = useSelector(isInBreakoutRoom); const _currentRoomId = useSelector(getCurrentRoomId);