Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(iOS-responsive-ui) Attempt fix iOS responsive ui issue (#14819)
Horatiu Muresanbebcfa3fd705
diff --git a/react/features/base/responsive-ui/actions.ts b/react/features/base/responsive-ui/actions.tsindex 7b89a75168..f33cfaa466 100644--- a/react/features/base/responsive-ui/actions.ts+++ b/react/features/base/responsive-ui/actions.ts@@ -35,6 +35,10 @@ const REDUCED_UI_THRESHOLD = 300;*/export function clientResized(clientWidth: number, clientHeight: number) {return (dispatch: IStore['dispatch'], getState: IStore['getState']) => {+ if (!clientWidth && !clientHeight) {+ return;+ }+let availableWidth = clientWidth;if (navigator.product !== 'ReactNative') {diff --git a/react/features/base/responsive-ui/middleware.web.ts b/react/features/base/responsive-ui/middleware.web.tsindex b1b7932b8c..f4130b54af 100644--- a/react/features/base/responsive-ui/middleware.web.ts+++ b/react/features/base/responsive-ui/middleware.web.ts@@ -1,5 +1,6 @@import { IStore } from '../../app/types';import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../app/actionTypes';+import { CONFERENCE_JOINED } from '../conference/actionTypes';import MiddlewareRegistry from '../redux/MiddlewareRegistry';import { clientResized } from './actions';@@ -27,6 +28,19 @@ MiddlewareRegistry.register(store => next => action => {_appWillMount(store);break;+ case CONFERENCE_JOINED: {+ const { clientHeight = 0, clientWidth = 0 } = store.getState()['features/base/responsive-ui'];++ if (!clientHeight && !clientWidth) {+ const {+ innerHeight,+ innerWidth+ } = window;++ store.dispatch(clientResized(innerWidth, innerHeight));+ }+ break;+ }}return result;