Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fix initial volume value if value is 0

Izak Glasencnikebe16af809da
diff --git a/react/features/video-menu/components/web/ParticipantContextMenu.js b/react/features/video-menu/components/web/ParticipantContextMenu.js
index 189b819ddf..d5365e01c6 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);