Skip to content
Snippets Groups Projects
Commit fe99ea88 authored by Gustavo Trott's avatar Gustavo Trott
Browse files

Hide Mic and Camera buttons if userAgent contains bbbnative

parent db2ca3ce
No related branches found
No related tags found
No related merge requests found
......@@ -265,13 +265,14 @@ class AudioModal extends Component {
forceListenOnlyAttendee,
skipCheck,
audioLocked,
isMobileNative,
} = this.props;
const showMicrophone = forceListenOnlyAttendee || audioLocked;
return (
<span className={styles.audioOptions}>
{!showMicrophone
{!showMicrophone && !isMobileNative
? (
<Button
className={styles.audioBtn}
......
......@@ -62,5 +62,6 @@ export default withModalMounter(withTracker(({ mountModal }) => {
joinFullAudioEchoTest: !listenOnlyMode && !skipCheck,
forceListenOnlyAttendee: listenOnlyMode && forceListenOnly && !Service.isUserModerator(),
isIOSChrome: browser().name === 'crios',
isMobileNative: navigator.userAgent.toLowerCase().includes('bbbnative'),
});
})(AudioModalContainer));
......@@ -15,12 +15,13 @@ const JoinVideoOptionsContainer = (props) => {
baseName,
intl,
mountModal,
isMobileNative,
...restProps
} = props;
const mountPreview = () => { mountModal(<VideoPreviewContainer />); };
return <JoinVideoButton {...{ handleJoinVideo: mountPreview, handleCloseVideo, isSharingVideo, isDisabled, ...restProps }} />;
return !isMobileNative && <JoinVideoButton {...{ handleJoinVideo: mountPreview, handleCloseVideo, isSharingVideo, isDisabled, ...restProps }} />;
};
export default withModalMounter(injectIntl(withTracker(() => ({
......@@ -28,4 +29,5 @@ export default withModalMounter(injectIntl(withTracker(() => ({
isSharingVideo: VideoButtonService.isSharingVideo(),
isDisabled: VideoButtonService.isDisabled(),
videoShareAllowed: VideoButtonService.videoShareAllowed(),
isMobileNative: navigator.userAgent.toLowerCase().includes('bbbnative'),
}))(JoinVideoOptionsContainer)));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment