agora-appbuilder-core 3.0.6 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -49,20 +49,6 @@ export const ScreenshareConfigure = (props: {children: React.ReactNode}) => {
49
49
  currentLayoutRef.current.currentLayout = currentLayout;
50
50
  }, [currentLayout]);
51
51
 
52
- // useEffect(() => {
53
- // if (
54
- // lastJoinedUid &&
55
- // activeUids &&
56
- // activeUids.indexOf(lastJoinedUid) !== -1 &&
57
- // renderListRef.current.renderList[lastJoinedUid] &&
58
- // renderListRef.current.renderList[lastJoinedUid].type === 'screenshare' &&
59
- // isPinned.current !== lastJoinedUid
60
- // ) {
61
- // //set to pinned layout
62
- // //triggerChangeLayout(true, lastJoinedUid);
63
- // }
64
- // }, [lastJoinedUid, activeUids, renderListRef.current.renderList]);
65
-
66
52
  useEffect(() => {
67
53
  const data = filterObject(screenShareData, ([k, v]) => v?.isActive);
68
54
  if (data) {
@@ -70,19 +70,6 @@ export const ScreenshareConfigure = (props: {children: React.ReactNode}) => {
70
70
  * lastJoinedUid will be coming from the user joined event
71
71
  * cross check lastJoinedUid data with renderlist
72
72
  */
73
- // useEffect(() => {
74
- // if (
75
- // lastJoinedUid &&
76
- // activeUids &&
77
- // activeUids.indexOf(lastJoinedUid) !== -1 &&
78
- // renderListRef.current.renderList[lastJoinedUid] &&
79
- // renderListRef.current.renderList[lastJoinedUid].type === 'screenshare' &&
80
- // isPinned.current !== lastJoinedUid
81
- // ) {
82
- // //set to pinned layout
83
- // // triggerChangeLayout(true, lastJoinedUid);
84
- // }
85
- // }, [lastJoinedUid, activeUids, renderListRef.current.renderList]);
86
73
 
87
74
  useEffect(() => {
88
75
  const data = filterObject(screenShareData, ([k, v]) => v?.isActive);