fix: still show menu to toggle self view if disableLocalVideoFlip (#10751)

* fix: still show menu to toggle self view if disableLocalVideoFlip

* fixed lint issues
This commit is contained in:
Shawn Chin 2022-01-10 14:34:01 +00:00 committed by GitHub
parent b8778c4e0b
commit 97fbfd21af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -173,9 +173,11 @@ class LocalVideoMenuTriggerButton extends Component<Props> {
hidden = { false }
inDrawer = { _overflowDrawer }>
<ContextMenuItemGroup>
<FlipLocalVideoButton
className = { _overflowDrawer ? classes.flipText : '' }
onClick = { hidePopover } />
{ _showLocalVideoFlipButton
&& <FlipLocalVideoButton
className = { _overflowDrawer ? classes.flipText : '' }
onClick = { hidePopover } />
}
{ _showHideSelfViewButton
&& <HideSelfViewVideoButton
className = { _overflowDrawer ? classes.flipText : '' }
@ -189,7 +191,7 @@ class LocalVideoMenuTriggerButton extends Component<Props> {
);
return (
isMobileBrowser() || _showLocalVideoFlipButton
isMobileBrowser() || _showLocalVideoFlipButton || _showHideSelfViewButton
? <Popover
content = { content }
id = 'local-video-menu-trigger'