agora-appbuilder-core 4.0.0-beta.75 → 4.0.0-beta.76

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": "4.0.0-beta.75",
3
+ "version": "4.0.0-beta.76",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -12,20 +12,20 @@
12
12
  let jsonFile = require('./config.json');
13
13
  let PREFIX = '$config';
14
14
  let config = {};
15
- Object.keys(jsonFile).map((key) => {
15
+ Object.keys(jsonFile).map(key => {
16
16
  config[`${PREFIX}.${key}`] = jsonFile[key];
17
17
  });
18
18
 
19
19
  //find any missing config
20
20
  const defaultConfig = require('./defaultConfig');
21
21
  const filteredArray = Object.keys(defaultConfig).filter(
22
- (value) => !Object.keys(jsonFile).includes(value),
22
+ value => !Object.keys(jsonFile).includes(value),
23
23
  );
24
24
 
25
25
  //add missing config with default value
26
26
  if (filteredArray && filteredArray?.length) {
27
- console.error('config.json missing ', filteredArray);
28
- filteredArray.forEach((i) => {
27
+ //console.error('config.json missing ', filteredArray);
28
+ filteredArray.forEach(i => {
29
29
  config[`${PREFIX}.${i}`] = defaultConfig[i];
30
30
  });
31
31
  }
@@ -108,7 +108,9 @@ const PinnedVideo = ({renderData}) => {
108
108
  marginBottom: 8,
109
109
  }
110
110
  }>
111
- {secondaryPinnedUid ? (
111
+ {secondaryPinnedUid &&
112
+ secondaryPinnedUid !== pinnedUid &&
113
+ secondaryPinnedUid !== maxUid ? (
112
114
  <Pressable
113
115
  disabled={true}
114
116
  style={