agora-appbuilder-core 4.1.7-beta.6 → 4.1.7-beta.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 +1 -1
- package/template/defaultConfig.js +2 -2
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +1 -1
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +1 -1
- package/template/src/pages/Join.tsx +2 -2
- package/template/src/pages/VideoCall.tsx +4 -4
package/package.json
CHANGED
|
@@ -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.7-beta.
|
|
81
|
-
CORE_VERSION: '4.1.7-beta.
|
|
80
|
+
CLI_VERSION: '3.1.7-beta.8',
|
|
81
|
+
CORE_VERSION: '4.1.7-beta.8',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -232,7 +232,7 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
232
232
|
const title = buttonText;
|
|
233
233
|
const onPress = () => onSubmit();
|
|
234
234
|
const disabled = $config.ENABLE_WAITING_ROOM_AUTO_REQUEST
|
|
235
|
-
? !hasHostJoined || isInWaitingRoom
|
|
235
|
+
? !hasHostJoined || isInWaitingRoom || username?.trim() === ''
|
|
236
236
|
: isInWaitingRoom || username?.trim() === '';
|
|
237
237
|
return props?.render ? (
|
|
238
238
|
props.render(onPress, title, disabled)
|
|
@@ -281,7 +281,7 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
281
281
|
const title = buttonText;
|
|
282
282
|
const onPress = () => onSubmit();
|
|
283
283
|
const disabled = $config.ENABLE_WAITING_ROOM_AUTO_REQUEST
|
|
284
|
-
? !hasHostJoined || isInWaitingRoom
|
|
284
|
+
? !hasHostJoined || isInWaitingRoom || username?.trim() === ''
|
|
285
285
|
: isInWaitingRoom || username?.trim() === '';
|
|
286
286
|
return props?.render ? (
|
|
287
287
|
props.render(onPress, title, disabled)
|
|
@@ -138,9 +138,9 @@ const Join = () => {
|
|
|
138
138
|
history.push(phrase);
|
|
139
139
|
})
|
|
140
140
|
.catch(error => {
|
|
141
|
-
const errorCode = error?.
|
|
141
|
+
const errorCode = error?.code;
|
|
142
142
|
if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
|
|
143
|
-
SDKEvents.emit('unauthorized', error
|
|
143
|
+
SDKEvents.emit('unauthorized', error);
|
|
144
144
|
}
|
|
145
145
|
logger.error(
|
|
146
146
|
LogSource.Internals,
|
|
@@ -269,9 +269,9 @@ const VideoCall: React.FC = () => {
|
|
|
269
269
|
);
|
|
270
270
|
})
|
|
271
271
|
.catch(error => {
|
|
272
|
-
const errorCode = error?.
|
|
272
|
+
const errorCode = error?.code;
|
|
273
273
|
if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
|
|
274
|
-
SDKEvents.emit('unauthorized', error
|
|
274
|
+
SDKEvents.emit('unauthorized', error);
|
|
275
275
|
}
|
|
276
276
|
logger.error(
|
|
277
277
|
LogSource.Internals,
|
|
@@ -326,9 +326,9 @@ const VideoCall: React.FC = () => {
|
|
|
326
326
|
);
|
|
327
327
|
})
|
|
328
328
|
.catch(error => {
|
|
329
|
-
const errorCode = error?.
|
|
329
|
+
const errorCode = error?.code;
|
|
330
330
|
if (AuthErrorCodes.indexOf(errorCode) !== -1 && isSDK()) {
|
|
331
|
-
SDKEvents.emit('unauthorized', error
|
|
331
|
+
SDKEvents.emit('unauthorized', error);
|
|
332
332
|
}
|
|
333
333
|
logger.error(
|
|
334
334
|
LogSource.Internals,
|