@100mslive/roomkit-react 0.3.18-alpha.0 → 0.3.18-alpha.1

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.18-alpha.0",
13
+ "version": "0.3.18-alpha.1",
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.18-alpha.0",
78
+ "@100mslive/hls-player": "0.3.18-alpha.1",
79
79
  "@100mslive/hms-noise-cancellation": "0.0.1",
80
- "@100mslive/hms-virtual-background": "1.13.18-alpha.0",
81
- "@100mslive/hms-whiteboard": "0.0.8-alpha.0",
82
- "@100mslive/react-icons": "0.10.18-alpha.0",
83
- "@100mslive/react-sdk": "0.10.18-alpha.0",
80
+ "@100mslive/hms-virtual-background": "1.13.18-alpha.1",
81
+ "@100mslive/hms-whiteboard": "0.0.8-alpha.1",
82
+ "@100mslive/react-icons": "0.10.18-alpha.1",
83
+ "@100mslive/react-sdk": "0.10.18-alpha.1",
84
84
  "@100mslive/types-prebuilt": "0.12.11",
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": "b2d7b9762d30301f418f436039ac770321d56265"
120
+ "gitHead": "76d38031cd8ce8784492dd9e44ef6d1856348e5b"
121
121
  }
@@ -121,12 +121,21 @@ export const AppData = React.memo(() => {
121
121
  ...uiSettings,
122
122
  [UI_SETTINGS.isAudioOnly]: undefined,
123
123
  [UI_SETTINGS.uiViewMode]: uiSettings.uiViewMode || UI_MODE_GRID,
124
- [UI_SETTINGS.maxTileCount]: isMobile
125
- ? DEFAULT_TILES_IN_VIEW.MWEB
126
- : Number(elements?.video_tile_layout?.grid?.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP,
127
124
  };
128
- hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, false);
129
- }, [preferences, hmsActions, elements?.video_tile_layout, isMobile]);
125
+ hmsActions.setAppData(APP_DATA.uiSettings, updatedSettings, true);
126
+ }, [hmsActions, preferences]);
127
+
128
+ useEffect(() => {
129
+ hmsActions.setAppData(
130
+ APP_DATA.uiSettings,
131
+ {
132
+ [UI_SETTINGS.maxTileCount]: isMobile
133
+ ? DEFAULT_TILES_IN_VIEW.MWEB
134
+ : Number(elements?.video_tile_layout?.grid?.tiles_in_view) || DEFAULT_TILES_IN_VIEW.DESKTOP,
135
+ },
136
+ true,
137
+ );
138
+ }, [hmsActions, isMobile, elements?.video_tile_layout?.grid?.tiles_in_view]);
130
139
 
131
140
  useEffect(() => {
132
141
  if (!preferences.subscribedNotifications) {