agora-appbuilder-core 4.1.5-beta.2 → 4.1.5-beta.3
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/ai-agent/ai-interface/AIAgentInterface.tsx +1 -0
- package/template/src/ai-agent/layout/ConversationalAI.tsx +1 -1
- package/template/src/ai-agent/layout/NewAnimation.tsx +1 -1
- package/template/src/components/participants/UserActionMenuOptions.tsx +18 -1
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.5-beta.
|
|
81
|
-
CORE_VERSION: '4.1.5-beta.
|
|
80
|
+
CLI_VERSION: '3.1.5-beta.3',
|
|
81
|
+
CORE_VERSION: '4.1.5-beta.3',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useContent,
|
|
10
10
|
useSidePanel,
|
|
11
11
|
useUserActionMenu,
|
|
12
|
+
useChatUIControls,
|
|
12
13
|
} from 'customization-api';
|
|
13
14
|
import {
|
|
14
15
|
DefaultLayouts,
|
|
@@ -47,6 +48,7 @@ import {useDisableChat} from '../disable-chat/useDisableChat';
|
|
|
47
48
|
import {useWhiteboard} from '../../components/whiteboard/WhiteboardConfigure';
|
|
48
49
|
import {useString} from '../../utils/useString';
|
|
49
50
|
import {
|
|
51
|
+
chatErrorNotConnected,
|
|
50
52
|
I18nMuteType,
|
|
51
53
|
moreBtnAddAsPresenter,
|
|
52
54
|
moreBtnAudio,
|
|
@@ -142,6 +144,8 @@ export default function UserActionMenuOptionsOptions(
|
|
|
142
144
|
const removeScreenShareLabel = useString(moreBtnRemoveScreenShare)();
|
|
143
145
|
const removeFromRoomLabel = useString(moreBtnRemoveFromRoom)();
|
|
144
146
|
const moreBtnSpotlightLabel = useString(moreBtnSpotlight);
|
|
147
|
+
const {chatConnectionStatus} = useChatUIControls();
|
|
148
|
+
const chatErrNotConnectedText = useString(chatErrorNotConnected)();
|
|
145
149
|
|
|
146
150
|
useEffect(() => {
|
|
147
151
|
customEvents.on('DisableChat', data => {
|
|
@@ -372,7 +376,20 @@ export default function UserActionMenuOptionsOptions(
|
|
|
372
376
|
messageConfig.onPress();
|
|
373
377
|
} else {
|
|
374
378
|
messageConfig.onAction?.(user.uid);
|
|
375
|
-
|
|
379
|
+
if (chatConnectionStatus !== 'connected') {
|
|
380
|
+
Toast.show({
|
|
381
|
+
leadingIconName: 'alert',
|
|
382
|
+
type: 'error',
|
|
383
|
+
text1: 'Failed to enable Chat Service.',
|
|
384
|
+
text2: chatErrNotConnectedText,
|
|
385
|
+
visibilityTime: 1000 * 10,
|
|
386
|
+
primaryBtn: null,
|
|
387
|
+
secondaryBtn: null,
|
|
388
|
+
leadingIcon: null,
|
|
389
|
+
});
|
|
390
|
+
} else {
|
|
391
|
+
openPrivateChat(user.uid);
|
|
392
|
+
}
|
|
376
393
|
}
|
|
377
394
|
},
|
|
378
395
|
});
|