agora-appbuilder-core 4.1.8-beta.9 → 4.1.8

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.1.8-beta.9",
3
+ "version": "4.1.8",
4
4
  "description": "React Native template for RTE app builder",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -77,8 +77,8 @@ const DefaultConfig = {
77
77
  CHAT_ORG_NAME: '',
78
78
  CHAT_APP_NAME: '',
79
79
  CHAT_URL: '',
80
- CLI_VERSION: '3.1.8-beta.9',
81
- CORE_VERSION: '4.1.8-beta.9',
80
+ CLI_VERSION: '3.1.8',
81
+ CORE_VERSION: '4.1.8',
82
82
  DISABLE_LANDSCAPE_MODE: false,
83
83
  STT_AUTO_START: false,
84
84
  CLOUD_RECORDING_AUTO_START: false,
@@ -90,7 +90,7 @@ const DefaultConfig = {
90
90
  SDK_CODEC: 'vp8',
91
91
  ENABLE_WAITING_ROOM_AUTO_APPROVAL: false,
92
92
  ENABLE_WAITING_ROOM_AUTO_REQUEST: false,
93
- ENABLE_TEXT_TRACKS: true,
93
+ ENABLE_TEXT_TRACKS: false,
94
94
  };
95
95
 
96
96
  module.exports = DefaultConfig;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, {useEffect} from 'react';
2
2
  import {View, Text, TouchableOpacity} from 'react-native';
3
3
  import Tooltip from '../../atoms/Tooltip';
4
4
  import Clipboard from '../../subComponents/Clipboard';
@@ -204,7 +204,7 @@ function ErrorTextTrackState({message}: {message: string}) {
204
204
  }
205
205
 
206
206
  function TextTracksTable() {
207
- const {sttState, currentPage, setCurrentPage, deleteTranscript} =
207
+ const {getSTTs, sttState, currentPage, setCurrentPage, deleteTranscript} =
208
208
  useFetchSTTTranscript();
209
209
 
210
210
  const {
@@ -212,6 +212,11 @@ function TextTracksTable() {
212
212
  data: {stts, pagination},
213
213
  error: fetchTranscriptError,
214
214
  } = sttState;
215
+
216
+ useEffect(() => {
217
+ getSTTs(currentPage);
218
+ }, [currentPage, getSTTs]);
219
+
215
220
  // id of text-tracj to delete
216
221
  const [textTrackIdToDelete, setTextTrackIdToDelete] = React.useState<
217
222
  string | undefined
@@ -119,10 +119,6 @@ export function useFetchSTTTranscript() {
119
119
  [roomId.host, store.token],
120
120
  );
121
121
 
122
- useEffect(() => {
123
- getSTTs(currentPage);
124
- }, [currentPage, getSTTs]);
125
-
126
122
  // Delete stts
127
123
  const deleteTranscript = useCallback(
128
124
  async (id: string) => {