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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agora-appbuilder-core",
3
- "version": "4.1.5-beta.2",
3
+ "version": "4.1.5-beta.3",
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.5-beta.2',
81
- CORE_VERSION: '4.1.5-beta.2',
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,
@@ -112,6 +112,7 @@ const styles = StyleSheet.create({
112
112
  display: 'flex',
113
113
  alignItems: 'center',
114
114
  justifyContent: 'center',
115
+ borderRadius: 8,
115
116
  ...Platform.select({
116
117
  web: {
117
118
  pointerEvents: 'none',
@@ -142,7 +142,7 @@ const styles = StyleSheet.create({
142
142
  },
143
143
  layoutRootContainer: {
144
144
  flex: 1,
145
- backgroundColor: $config.CARD_LAYER_1_COLOR,
145
+ backgroundColor: $config.VIDEO_AUDIO_TILE_COLOR,
146
146
  borderRadius: 8,
147
147
  },
148
148
  callAgentBtnInnerContainer: {
@@ -109,7 +109,7 @@ const styles = StyleSheet.create({
109
109
  },
110
110
  layoutRootContainer: {
111
111
  flex: 1,
112
- backgroundColor: $config.CARD_LAYER_1_COLOR,
112
+ backgroundColor: $config.VIDEO_AUDIO_TILE_COLOR,
113
113
  borderRadius: 8,
114
114
  },
115
115
  callAgentBtnInnerContainer: {
@@ -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
- openPrivateChat(user.uid);
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
  });