Make startCallLobby resilient to re-entrant calls

This commit is contained in:
Scott Nonnenberg 2024-09-19 09:29:14 +10:00 committed by GitHub
parent be4036f4ab
commit b9cd858ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 498 additions and 150 deletions

View file

@ -90,7 +90,9 @@ export const getPreferredTheme = createSelector(
const getIsInFullScreenCall = createSelector(
(state: StateType): CallingStateType => state.calling,
(state: CallingStateType): boolean =>
Boolean(state.activeCallState && !state.activeCallState.pip)
Boolean(
state.activeCallState?.state === 'Active' && !state.activeCallState.pip
)
);
export const getTheme = createSelector(