Skip to content

Commit

Permalink
fix: vb picker options
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Nov 21, 2023
1 parent b778f18 commit e667035
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export const VBPicker = ({ background_media = [] }: VirtualBackground = {}) => {
const roomState = useHMSStore(selectRoomState);
const isLargeRoom = useHMSStore(selectIsLargeRoom);
const addedPluginToVideoTrack = useRef(false);
const mediaList = background_media?.length
? background_media.map((media: VirtualBackgroundMedia) => media?.url)
: defaultMedia;
const mediaList = [...background_media.map((media: VirtualBackgroundMedia) => media?.url), ...defaultMedia];

// Hidden in preview as the effect will be visible in the preview tile. Needed inside the room because the peer might not be on-screen
const showVideoTile = isVideoOn && isLargeRoom && roomState !== HMSRoomState.Preview;
Expand Down

0 comments on commit e667035

Please sign in to comment.