@100mslive/roomkit-react 0.3.19-alpha.23 → 0.3.19-alpha.24

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "prebuilt",
11
11
  "roomkit"
12
12
  ],
13
- "version": "0.3.19-alpha.23",
13
+ "version": "0.3.19-alpha.24",
14
14
  "author": "100ms",
15
15
  "license": "MIT",
16
16
  "repository": {
@@ -75,12 +75,12 @@
75
75
  "react": ">=17.0.2 <19.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@100mslive/hls-player": "0.3.19-alpha.23",
78
+ "@100mslive/hls-player": "0.3.19-alpha.24",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.19-alpha.23",
81
- "@100mslive/hms-whiteboard": "0.0.9-alpha.23",
82
- "@100mslive/react-icons": "0.10.19-alpha.23",
83
- "@100mslive/react-sdk": "0.10.19-alpha.23",
80
+ "@100mslive/hms-virtual-background": "1.13.19-alpha.24",
81
+ "@100mslive/hms-whiteboard": "0.0.9-alpha.24",
82
+ "@100mslive/react-icons": "0.10.19-alpha.24",
83
+ "@100mslive/react-sdk": "0.10.19-alpha.24",
84
84
  "@100mslive/types-prebuilt": "0.12.12",
85
85
  "@emoji-mart/data": "^1.0.6",
86
86
  "@emoji-mart/react": "^1.0.1",
@@ -117,5 +117,5 @@
117
117
  "uuid": "^8.3.2",
118
118
  "worker-timers": "^7.0.40"
119
119
  },
120
- "gitHead": "6d6c172062d69b0bd667798f32ce3a726dd796c5"
120
+ "gitHead": "9488737c5d5a46a839b8c19f221c8900304d570d"
121
121
  }
@@ -70,7 +70,10 @@ export const useAppStateManager = () => {
70
70
  () => {
71
71
  setActiveState(prevState => {
72
72
  return match({ isLeaveScreenEnabled, isPreviewScreenEnabled, prevState })
73
- .with({ isLeaveScreenEnabled: true, prevState: PrebuiltStates.MEETING }, () => PrebuiltStates.LEAVE)
73
+ .when(
74
+ ({ isLeaveScreenEnabled, prevState }) => isLeaveScreenEnabled && prevState !== PrebuiltStates.LEAVE,
75
+ () => PrebuiltStates.LEAVE,
76
+ )
74
77
  .with({ isPreviewScreenEnabled: true }, () => PrebuiltStates.PREVIEW)
75
78
  .otherwise(() => PrebuiltStates.MEETING);
76
79
  });