Merge pull request #17904 from prlanzarin/u26/fix/video-button-ios-uacheck
fix: remove legacy iOS UA checks that borked camera sharing in iPads
This commit is contained in:
commit
2b374533ae
@ -71,10 +71,6 @@ const intlMessages = defineMessages({
|
||||
id: 'app.actionsBar.label',
|
||||
description: 'Aria-label for ActionsBar Section',
|
||||
},
|
||||
iOSWarning: {
|
||||
id: 'app.iOSWarning.label',
|
||||
description: 'message indicating to upgrade ios version',
|
||||
},
|
||||
clearedEmoji: {
|
||||
id: 'app.toast.clearedEmoji.label',
|
||||
description: 'message for cleared emoji status',
|
||||
@ -148,7 +144,6 @@ class App extends Component {
|
||||
const {
|
||||
notify,
|
||||
intl,
|
||||
validIOSVersion,
|
||||
layoutContextDispatch,
|
||||
isRTL,
|
||||
} = this.props;
|
||||
@ -181,12 +176,6 @@ class App extends Component {
|
||||
|
||||
body.classList.add(`os-${osName.split(' ').shift().toLowerCase()}`);
|
||||
|
||||
if (!validIOSVersion()) {
|
||||
notify(
|
||||
intl.formatMessage(intlMessages.iOSWarning), 'error', 'warning',
|
||||
);
|
||||
}
|
||||
|
||||
this.handleWindowResize();
|
||||
window.addEventListener('resize', this.handleWindowResize, false);
|
||||
window.addEventListener('localeChanged', () => {
|
||||
@ -558,7 +547,7 @@ class App extends Component {
|
||||
? <ExternalVideoContainer isLayoutSwapped={!presentationIsOpen} isPresenter={isPresenter} />
|
||||
: null
|
||||
}
|
||||
{shouldShowSharedNotes
|
||||
{shouldShowSharedNotes
|
||||
? (
|
||||
<NotesContainer
|
||||
area="media"
|
||||
|
@ -28,7 +28,6 @@ const ROLE_MODERATOR = Meteor.settings.public.user.role_moderator;
|
||||
import {
|
||||
getFontSize,
|
||||
getBreakoutRooms,
|
||||
validIOSVersion,
|
||||
} from './service';
|
||||
|
||||
import { withModalMounter, getModal } from '/imports/ui/components/common/modal/service';
|
||||
@ -96,7 +95,7 @@ const AppContainer = (props) => {
|
||||
const { focusedId } = cameraDock;
|
||||
|
||||
if(
|
||||
layoutContextDispatch
|
||||
layoutContextDispatch
|
||||
&& (typeof meetingLayout != "undefined")
|
||||
&& (layoutType.current != meetingLayout)
|
||||
) {
|
||||
@ -140,7 +139,7 @@ const AppContainer = (props) => {
|
||||
|
||||
useEffect(() => {
|
||||
MediaService.buildLayoutWhenPresentationAreaIsDisabled(layoutContextDispatch)});
|
||||
|
||||
|
||||
return currentUserId
|
||||
? (
|
||||
<App
|
||||
@ -283,7 +282,6 @@ export default withModalMounter(withTracker(() => {
|
||||
customStyleUrl,
|
||||
UserInfo,
|
||||
notify,
|
||||
validIOSVersion,
|
||||
isPhone: deviceInfo.isPhone,
|
||||
isRTL: document.documentElement.getAttribute('dir') === 'rtl',
|
||||
currentUserEmoji: currentUserEmoji(currentUser),
|
||||
|
@ -20,15 +20,6 @@ function meetingIsBreakout() {
|
||||
return (meeting && meeting.meetingProp.isBreakout);
|
||||
}
|
||||
|
||||
const validIOSVersion = () => {
|
||||
const { isIos, isIosVersionSupported } = deviceInfo;
|
||||
|
||||
if (isIos) {
|
||||
return isIosVersionSupported();
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
const setDarkTheme = (value) => {
|
||||
if (value && !DarkReader.isEnabled()) {
|
||||
DarkReader.enable(
|
||||
@ -56,7 +47,6 @@ export {
|
||||
getFontSize,
|
||||
meetingIsBreakout,
|
||||
getBreakoutRooms,
|
||||
validIOSVersion,
|
||||
setDarkTheme,
|
||||
isDarkThemeEnabled,
|
||||
};
|
||||
|
@ -4,7 +4,6 @@ import ButtonEmoji from '/imports/ui/components/common/button/button-emoji/Butto
|
||||
import VideoService from '../service';
|
||||
import { defineMessages, injectIntl } from 'react-intl';
|
||||
import Styled from './styles';
|
||||
import { validIOSVersion } from '/imports/ui/components/app/service';
|
||||
import deviceInfo from '/imports/utils/deviceInfo';
|
||||
import { debounce } from 'lodash';
|
||||
import BBBMenu from '/imports/ui/components/common/menu/component';
|
||||
@ -51,10 +50,6 @@ const intlMessages = defineMessages({
|
||||
id: 'app.video.clientDisconnected',
|
||||
description: 'Meteor disconnected label',
|
||||
},
|
||||
iOSWarning: {
|
||||
id: 'app.iOSWarning.label',
|
||||
description: 'message indicating to upgrade ios version',
|
||||
},
|
||||
});
|
||||
|
||||
const JOIN_VIDEO_DELAY_MILLISECONDS = 500;
|
||||
@ -86,10 +81,6 @@ const JoinVideoButton = ({
|
||||
|| shouldEnableWebcamSelectorButton);
|
||||
|
||||
const handleOnClick = debounce(() => {
|
||||
if (!validIOSVersion()) {
|
||||
return VideoService.notify(intl.formatMessage(intlMessages.iOSWarning));
|
||||
}
|
||||
|
||||
switch (status) {
|
||||
case 'videoConnecting':
|
||||
VideoService.stopVideo();
|
||||
|
@ -9,14 +9,10 @@ const isTablet = BOWSER_RESULTS.platform.type === 'tablet' || (BOWSER_RESULTS.os
|
||||
const isMobile = isPhone || isTablet;
|
||||
const hasMediaDevices = !!navigator.mediaDevices;
|
||||
const osName = BOWSER_RESULTS.os.name;
|
||||
const osVersion = BOWSER_RESULTS.os.version;
|
||||
const isIos = osName === 'iOS' || (isTablet && osName=="macOS");
|
||||
const isMacos = osName === 'macOS';
|
||||
const isIphone = !!(userAgent.match(/iPhone/i));
|
||||
|
||||
const SUPPORTED_IOS_VERSION = 12.2;
|
||||
const isIosVersionSupported = () => parseFloat(osVersion) >= SUPPORTED_IOS_VERSION;
|
||||
|
||||
const isPortrait = () => window.innerHeight > window.innerWidth;
|
||||
|
||||
const deviceInfo = {
|
||||
@ -29,7 +25,6 @@ const deviceInfo = {
|
||||
isIos,
|
||||
isMacos,
|
||||
isIphone,
|
||||
isIosVersionSupported,
|
||||
};
|
||||
|
||||
export default deviceInfo;
|
||||
|
@ -1169,7 +1169,6 @@
|
||||
"app.externalVideo.subtitlesOff": "Turn on (if available)",
|
||||
"app.actionsBar.actionsDropdown.shareExternalVideo": "Share an external video",
|
||||
"app.actionsBar.actionsDropdown.stopShareExternalVideo": "Stop sharing external video",
|
||||
"app.iOSWarning.label": "Please upgrade to iOS 12.2 or higher",
|
||||
"app.legacy.unsupportedBrowser": "It looks like you're using a browser that is not supported. Please use either {0} or {1} for full support.",
|
||||
"app.legacy.upgradeBrowser": "It looks like you're using an older version of a supported browser. Please upgrade your browser for full support.",
|
||||
"app.legacy.criosBrowser": "On iOS please use Safari for full support.",
|
||||
|
Loading…
Reference in New Issue
Block a user