agora-appbuilder-core 4.1.0-beta-11 → 4.1.0-beta-15
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/components/AgentControls/AgentContext.tsx +6 -29
- package/template/src/ai-agent/components/AgentControls/message.ts +9 -1
- package/template/src/auth/AuthProvider.tsx +1 -6
- package/template/src/components/SettingsView.tsx +1 -2
- package/template/src/components/popups/InvitePopup.tsx +1 -10
- package/template/src/components/precall/joinCallBtn.native.tsx +0 -2
- package/template/src/components/precall/joinCallBtn.tsx +0 -3
- package/template/src/components/precall/joinWaitingRoomBtn.native.tsx +0 -3
- package/template/src/components/precall/joinWaitingRoomBtn.tsx +0 -3
- package/template/src/components/useUserPreference.tsx +1 -89
- package/template/src/pages/Create.tsx +1 -10
- package/template/src/pages/Join.tsx +1 -10
- package/template/src/pages/VideoCall.tsx +28 -32
- package/template/src/subComponents/recording/useRecording.tsx +1 -8
- package/template/src/subComponents/recording/useRecordingLayoutQuery.tsx +2 -16
- package/template/src/utils/useCreateRoom.ts +1 -8
- package/template/src/utils/useGetMeetingPhrase.ts +1 -8
- package/template/src/utils/useJoinRoom.ts +1 -8
- package/template/src/utils/useMutePSTN.ts +1 -8
package/package.json
CHANGED
|
@@ -76,8 +76,8 @@ const DefaultConfig = {
|
|
|
76
76
|
CHAT_ORG_NAME: '',
|
|
77
77
|
CHAT_APP_NAME: '',
|
|
78
78
|
CHAT_URL: '',
|
|
79
|
-
CLI_VERSION: '3.1.0-beta-
|
|
80
|
-
CORE_VERSION: '4.1.0-beta-
|
|
79
|
+
CLI_VERSION: '3.1.0-beta-15',
|
|
80
|
+
CORE_VERSION: '4.1.0-beta-15',
|
|
81
81
|
DISABLE_LANDSCAPE_MODE: false,
|
|
82
82
|
STT_AUTO_START: false,
|
|
83
83
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
useRoomInfo,
|
|
10
10
|
Toast,
|
|
11
11
|
useRtc,
|
|
12
|
+
isWebInternal,
|
|
12
13
|
} from 'customization-api';
|
|
13
14
|
import LocalEventEmitter, {
|
|
14
15
|
LocalEventsEnum,
|
|
@@ -81,34 +82,6 @@ export const AgentContext = createContext<AgentContextInterface>({
|
|
|
81
82
|
clearChatHistory: () => {},
|
|
82
83
|
});
|
|
83
84
|
|
|
84
|
-
/**
|
|
85
|
-
* Helper function to find the correct insertion index for a new item using binary search.
|
|
86
|
-
* Ensures that the array remains sorted by the `time` property after insertion.
|
|
87
|
-
*
|
|
88
|
-
* @param array The array to search within.
|
|
89
|
-
* @param time The `time` value of the new item to insert.
|
|
90
|
-
* @returns The index where the new item should be inserted.
|
|
91
|
-
*/
|
|
92
|
-
const findInsertionIndex = (array: ChatItem[], time: number): number => {
|
|
93
|
-
let low = 0;
|
|
94
|
-
let high = array.length;
|
|
95
|
-
|
|
96
|
-
// Perform binary search to find the insertion index
|
|
97
|
-
while (low < high) {
|
|
98
|
-
const mid = Math.floor((low + high) / 2);
|
|
99
|
-
|
|
100
|
-
// If the middle item's time is less than the new time, search the upper half
|
|
101
|
-
if (array[mid].time < time) {
|
|
102
|
-
low = mid + 1;
|
|
103
|
-
} else {
|
|
104
|
-
// Otherwise, search the lower half
|
|
105
|
-
high = mid;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return low; // The correct index for insertion
|
|
110
|
-
};
|
|
111
|
-
|
|
112
85
|
export const AgentProvider: React.FC<{children: React.ReactNode}> = ({
|
|
113
86
|
children,
|
|
114
87
|
}) => {
|
|
@@ -152,7 +125,11 @@ export const AgentProvider: React.FC<{children: React.ReactNode}> = ({
|
|
|
152
125
|
React.useEffect(() => {
|
|
153
126
|
if (!isSubscribedForStreams) {
|
|
154
127
|
RtcEngineUnsafe.addListener('onStreamMessage', (...args: any[]) => {
|
|
155
|
-
|
|
128
|
+
if (isWebInternal()) {
|
|
129
|
+
messageService?.handleStreamMessage(args[1]);
|
|
130
|
+
} else {
|
|
131
|
+
messageService?.handleStreamMessage(args[3]);
|
|
132
|
+
}
|
|
156
133
|
});
|
|
157
134
|
setIsSubscribedForStreams(true);
|
|
158
135
|
}
|
|
@@ -3,6 +3,7 @@ import {LogSource, logger} from '../../../logger/AppBuilderLogger';
|
|
|
3
3
|
import LocalEventEmitter, {
|
|
4
4
|
LocalEventsEnum,
|
|
5
5
|
} from '../../../rtm-events-api/LocalEvents';
|
|
6
|
+
import {Buffer} from 'buffer';
|
|
6
7
|
|
|
7
8
|
const DEFAULT_MESSAGE_CACHE_TIMEOUT = 1000 * 60 * 5; // 5 minutes
|
|
8
9
|
const DEFAULT_INTERVAL = 200; // milliseconds
|
|
@@ -669,7 +670,10 @@ export class MessageEngine {
|
|
|
669
670
|
// atob(message),
|
|
670
671
|
// );
|
|
671
672
|
|
|
672
|
-
const decodedMessage = JSON.parse(
|
|
673
|
+
// const decodedMessage = JSON.parse(atob(message));
|
|
674
|
+
const decodedMessage = JSON.parse(
|
|
675
|
+
Buffer.from(message, 'base64').toString('utf-8'),
|
|
676
|
+
);
|
|
673
677
|
|
|
674
678
|
// logger.debug(
|
|
675
679
|
// LogSource.AgoraSDK,
|
|
@@ -982,7 +986,10 @@ export let messageService: MessageEngine | null = null;
|
|
|
982
986
|
* @returns {MessageEngine} Singleton instance of MessageEngine
|
|
983
987
|
*/
|
|
984
988
|
export function initializeMessageEngine(): MessageEngine {
|
|
989
|
+
console.log('debguggingnew initializeMessageEngine getting here');
|
|
985
990
|
if (!messageService) {
|
|
991
|
+
console.log('debuggingnew getting here');
|
|
992
|
+
|
|
986
993
|
messageService = new MessageEngine(EMessageEngineMode.AUTO, chatHistory => {
|
|
987
994
|
LocalEventEmitter.emit(LocalEventsEnum.AGENT_TRANSCRIPT_CHANGE, {
|
|
988
995
|
data: {
|
|
@@ -992,6 +999,7 @@ export function initializeMessageEngine(): MessageEngine {
|
|
|
992
999
|
});
|
|
993
1000
|
});
|
|
994
1001
|
}
|
|
1002
|
+
console.log('debguggingnew messageService', messageService);
|
|
995
1003
|
return messageService;
|
|
996
1004
|
}
|
|
997
1005
|
|
|
@@ -365,12 +365,7 @@ const AuthProvider = (props: AuthProviderProps) => {
|
|
|
365
365
|
'user_details',
|
|
366
366
|
'API user details query failed. User is un-authenticated. Will Login in the user',
|
|
367
367
|
{
|
|
368
|
-
|
|
369
|
-
name: error?.networkError?.name,
|
|
370
|
-
code: error?.networkError?.result?.error?.code,
|
|
371
|
-
message: error?.networkError?.result?.error?.message,
|
|
372
|
-
},
|
|
373
|
-
error,
|
|
368
|
+
errorAsJSONString: JSON.stringify(error || {}),
|
|
374
369
|
startReqTs,
|
|
375
370
|
endRequestTs,
|
|
376
371
|
latency: endRequestTs - startReqTs,
|
|
@@ -64,7 +64,7 @@ export const EditName: React.FC<EditNameProps> = (props?: EditNameProps) => {
|
|
|
64
64
|
const {
|
|
65
65
|
data: {isHost},
|
|
66
66
|
} = useRoomInfo();
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
const {whiteboardActive} = useContext(whiteboardContext);
|
|
69
69
|
const [saved, setSaved] = useState(false);
|
|
70
70
|
const username = useGetName();
|
|
@@ -104,7 +104,6 @@ export const EditName: React.FC<EditNameProps> = (props?: EditNameProps) => {
|
|
|
104
104
|
}, 2000);
|
|
105
105
|
setEditable(false);
|
|
106
106
|
logger.log(LogSource.Internals, 'NAME', `Name changed ${newName}`);
|
|
107
|
-
saveName(trimmedText ? trimmedText : username);
|
|
108
107
|
} else {
|
|
109
108
|
setEditable(true);
|
|
110
109
|
inputRef.current.focus();
|
|
@@ -52,16 +52,7 @@ const InvitePopup = () => {
|
|
|
52
52
|
LogSource.Internals,
|
|
53
53
|
'GET_MEETING_PHRASE',
|
|
54
54
|
'unable to fetch meeting details',
|
|
55
|
-
error,
|
|
56
|
-
{
|
|
57
|
-
networkError: {
|
|
58
|
-
name: error?.networkError?.name,
|
|
59
|
-
//@ts-ignore
|
|
60
|
-
code: error?.networkError?.result?.error?.code,
|
|
61
|
-
//@ts-ignore
|
|
62
|
-
message: error?.networkError?.result?.error?.message,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
55
|
+
JSON.stringify(error || {}),
|
|
65
56
|
);
|
|
66
57
|
setGlobalErrorMessage(error);
|
|
67
58
|
});
|
|
@@ -38,7 +38,6 @@ const JoinCallBtn = (props: PreCallJoinCallBtnProps) => {
|
|
|
38
38
|
const {isJoinDataFetched} = useRoomInfo();
|
|
39
39
|
const joinRoomButton =
|
|
40
40
|
useString<PrecallJoinBtnTextInterface>(precallJoinBtnText);
|
|
41
|
-
const {saveName} = useUserPreference();
|
|
42
41
|
const [buttonText, setButtonText] = React.useState(
|
|
43
42
|
joinRoomButton({
|
|
44
43
|
waitingRoom: false,
|
|
@@ -59,7 +58,6 @@ const JoinCallBtn = (props: PreCallJoinCallBtnProps) => {
|
|
|
59
58
|
}, [rtcProps?.role]);
|
|
60
59
|
|
|
61
60
|
const onSubmit = () => {
|
|
62
|
-
saveName(username?.trim());
|
|
63
61
|
setCallActive(true);
|
|
64
62
|
};
|
|
65
63
|
|
|
@@ -47,7 +47,6 @@ const JoinCallBtn = (props: PreCallJoinCallBtnProps) => {
|
|
|
47
47
|
const setUsername = useSetName();
|
|
48
48
|
const {isJoinDataFetched} = useRoomInfo();
|
|
49
49
|
const {awake, request} = useWakeLock();
|
|
50
|
-
const {saveName} = useUserPreference();
|
|
51
50
|
const joinRoomButton =
|
|
52
51
|
useString<PrecallJoinBtnTextInterface>(precallJoinBtnText);
|
|
53
52
|
|
|
@@ -67,8 +66,6 @@ const JoinCallBtn = (props: PreCallJoinCallBtnProps) => {
|
|
|
67
66
|
);
|
|
68
67
|
setUsername(username.trim());
|
|
69
68
|
setCallActive(true);
|
|
70
|
-
//updating name in the backend
|
|
71
|
-
saveName(username.trim());
|
|
72
69
|
// Play a sound to avoid autoblocking in safari
|
|
73
70
|
if (isWebInternal() || isMobileOrTablet()) {
|
|
74
71
|
audio.volume = 0;
|
|
@@ -62,7 +62,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
62
62
|
|
|
63
63
|
const waitingRoomButton =
|
|
64
64
|
useString<PrecallJoinBtnTextInterface>(precallJoinBtnText);
|
|
65
|
-
const {saveName} = useUserPreference();
|
|
66
65
|
const [buttonText, setButtonText] = React.useState(
|
|
67
66
|
waitingRoomButton({
|
|
68
67
|
waitingRoom: true,
|
|
@@ -184,8 +183,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
184
183
|
|
|
185
184
|
const onSubmit = () => {
|
|
186
185
|
shouldWaitingRoomPoll = true;
|
|
187
|
-
saveName(username?.trim());
|
|
188
|
-
|
|
189
186
|
// Enter waiting rooom;
|
|
190
187
|
setRoomInfo(prev => {
|
|
191
188
|
return {...prev, isInWaitingRoom: true};
|
|
@@ -70,7 +70,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
70
70
|
const setUsername = useSetName();
|
|
71
71
|
const {isJoinDataFetched, isInWaitingRoom} = useRoomInfo();
|
|
72
72
|
const {awake, request} = useWakeLock();
|
|
73
|
-
const {saveName} = useUserPreference();
|
|
74
73
|
const waitingRoomButton =
|
|
75
74
|
useString<PrecallJoinBtnTextInterface>(precallJoinBtnText);
|
|
76
75
|
const {setRoomInfo} = useSetRoomInfo();
|
|
@@ -210,8 +209,6 @@ const JoinWaitingRoomBtn = (props: PreCallJoinWaitingRoomBtnProps) => {
|
|
|
210
209
|
const onSubmit = () => {
|
|
211
210
|
shouldWaitingRoomPoll = true;
|
|
212
211
|
setUsername(username.trim());
|
|
213
|
-
//updating name in the backend
|
|
214
|
-
saveName(username.trim());
|
|
215
212
|
//setCallActive(true);
|
|
216
213
|
|
|
217
214
|
// add the waitingRoomStatus to the uid
|
|
@@ -44,7 +44,6 @@ export interface UserUids {
|
|
|
44
44
|
interface UserPreferenceContextInterface {
|
|
45
45
|
displayName: string;
|
|
46
46
|
setDisplayName: React.Dispatch<React.SetStateAction<string>>;
|
|
47
|
-
saveName: (name: string) => void;
|
|
48
47
|
uids: UserUids;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -52,7 +51,7 @@ const UserPreferenceContext =
|
|
|
52
51
|
React.createContext<UserPreferenceContextInterface>({
|
|
53
52
|
displayName: '',
|
|
54
53
|
setDisplayName: () => {},
|
|
55
|
-
|
|
54
|
+
|
|
56
55
|
uids: {},
|
|
57
56
|
});
|
|
58
57
|
|
|
@@ -114,92 +113,6 @@ const UserPreferenceProvider = (props: {
|
|
|
114
113
|
} catch (error) {}
|
|
115
114
|
}, [languageCode, screenShareData]);
|
|
116
115
|
|
|
117
|
-
const saveName = (name: string) => {
|
|
118
|
-
if (name && name?.trim() !== '') {
|
|
119
|
-
const requestId = getUniqueID();
|
|
120
|
-
const startReqTs = Date.now();
|
|
121
|
-
try {
|
|
122
|
-
logger.log(
|
|
123
|
-
LogSource.Internals,
|
|
124
|
-
'NAME',
|
|
125
|
-
'Trying to save the display name',
|
|
126
|
-
{
|
|
127
|
-
requestId,
|
|
128
|
-
startReqTs,
|
|
129
|
-
},
|
|
130
|
-
);
|
|
131
|
-
updateUserName({
|
|
132
|
-
context: {
|
|
133
|
-
headers: {
|
|
134
|
-
'X-Request-Id': requestId,
|
|
135
|
-
'X-Session-Id': logger.getSessionId(),
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
variables: {
|
|
139
|
-
name,
|
|
140
|
-
},
|
|
141
|
-
})
|
|
142
|
-
.then(res => {
|
|
143
|
-
const endReqTs = Date.now();
|
|
144
|
-
logger.log(
|
|
145
|
-
LogSource.Internals,
|
|
146
|
-
'NAME',
|
|
147
|
-
'name updated successfully',
|
|
148
|
-
{
|
|
149
|
-
responseData: res,
|
|
150
|
-
startReqTs,
|
|
151
|
-
endReqTs,
|
|
152
|
-
latency: endReqTs - startReqTs,
|
|
153
|
-
requestId,
|
|
154
|
-
},
|
|
155
|
-
);
|
|
156
|
-
})
|
|
157
|
-
.catch(error => {
|
|
158
|
-
const endReqTs = Date.now();
|
|
159
|
-
logger.error(
|
|
160
|
-
LogSource.Internals,
|
|
161
|
-
'NAME',
|
|
162
|
-
'ERROR, could not save the name',
|
|
163
|
-
error,
|
|
164
|
-
{
|
|
165
|
-
networkError: {
|
|
166
|
-
name: error?.networkError?.name,
|
|
167
|
-
//@ts-ignore
|
|
168
|
-
code: error?.networkError?.result?.error?.code,
|
|
169
|
-
//@ts-ignore
|
|
170
|
-
message: error?.networkError?.result?.error?.message,
|
|
171
|
-
},
|
|
172
|
-
startReqTs,
|
|
173
|
-
endReqTs,
|
|
174
|
-
latency: endReqTs - startReqTs,
|
|
175
|
-
requestId,
|
|
176
|
-
},
|
|
177
|
-
);
|
|
178
|
-
});
|
|
179
|
-
} catch (error) {
|
|
180
|
-
const endReqTs = Date.now();
|
|
181
|
-
logger.error(
|
|
182
|
-
LogSource.Internals,
|
|
183
|
-
'NAME',
|
|
184
|
-
'ERROR, could not save the name',
|
|
185
|
-
error,
|
|
186
|
-
{
|
|
187
|
-
networkError: {
|
|
188
|
-
name: error?.networkError?.name,
|
|
189
|
-
//@ts-ignore
|
|
190
|
-
code: error?.networkError?.result?.error?.code,
|
|
191
|
-
//@ts-ignore
|
|
192
|
-
message: error?.networkError?.result?.error?.message,
|
|
193
|
-
},
|
|
194
|
-
startReqTs,
|
|
195
|
-
endReqTs,
|
|
196
|
-
latency: endReqTs - startReqTs,
|
|
197
|
-
requestId,
|
|
198
|
-
},
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
116
|
const userText = useString(videoRoomUserFallbackText)();
|
|
204
117
|
const pstnUserLabel = useString(PSTNUserLabel)();
|
|
205
118
|
const getScreenShareName = useString(videoRoomScreenshareText);
|
|
@@ -309,7 +222,6 @@ const UserPreferenceProvider = (props: {
|
|
|
309
222
|
value={{
|
|
310
223
|
setDisplayName,
|
|
311
224
|
displayName,
|
|
312
|
-
saveName,
|
|
313
225
|
uids,
|
|
314
226
|
}}>
|
|
315
227
|
{props.children}
|
|
@@ -235,16 +235,7 @@ const Create = () => {
|
|
|
235
235
|
LogSource.Internals,
|
|
236
236
|
'CREATE_MEETING',
|
|
237
237
|
'There was error while creating meeting',
|
|
238
|
-
error,
|
|
239
|
-
{
|
|
240
|
-
networkError: {
|
|
241
|
-
name: error?.networkError?.name,
|
|
242
|
-
//@ts-ignore
|
|
243
|
-
code: error?.networkError?.result?.error?.code,
|
|
244
|
-
//@ts-ignore
|
|
245
|
-
message: error?.networkError?.result?.error?.message,
|
|
246
|
-
},
|
|
247
|
-
},
|
|
238
|
+
JSON.stringify(error || {}),
|
|
248
239
|
);
|
|
249
240
|
if (
|
|
250
241
|
createRoomErrorToastHeadingText ||
|
|
@@ -134,16 +134,7 @@ const Join = () => {
|
|
|
134
134
|
LogSource.Internals,
|
|
135
135
|
'JOIN_MEETING',
|
|
136
136
|
'Error on join room page',
|
|
137
|
-
error,
|
|
138
|
-
{
|
|
139
|
-
networkError: {
|
|
140
|
-
name: error?.networkError?.name,
|
|
141
|
-
//@ts-ignore
|
|
142
|
-
code: error?.networkError?.result?.error?.code,
|
|
143
|
-
//@ts-ignore
|
|
144
|
-
message: error?.networkError?.result?.error?.message,
|
|
145
|
-
},
|
|
146
|
-
},
|
|
137
|
+
JSON.stringify(error || {}),
|
|
147
138
|
);
|
|
148
139
|
const isInvalidUrl =
|
|
149
140
|
error?.message.toLowerCase().trim() === 'invalid passphrase' || false;
|
|
@@ -249,22 +249,19 @@ const VideoCall: React.FC = () => {
|
|
|
249
249
|
useEffect(() => {
|
|
250
250
|
if (!SdkJoinState.phrase) {
|
|
251
251
|
useJoin(phrase, RoomInfoDefaultValue.roomPreference)
|
|
252
|
-
.then(() => {
|
|
252
|
+
.then(() => {
|
|
253
|
+
logger.log(
|
|
254
|
+
LogSource.Internals,
|
|
255
|
+
'JOIN_MEETING',
|
|
256
|
+
'Join channel success',
|
|
257
|
+
);
|
|
258
|
+
})
|
|
253
259
|
.catch(error => {
|
|
254
260
|
logger.error(
|
|
255
261
|
LogSource.Internals,
|
|
256
262
|
'JOIN_MEETING',
|
|
257
263
|
'Join channel error',
|
|
258
|
-
error,
|
|
259
|
-
{
|
|
260
|
-
networkError: {
|
|
261
|
-
name: error?.networkError?.name,
|
|
262
|
-
//@ts-ignore
|
|
263
|
-
code: error?.networkError?.result?.error?.code,
|
|
264
|
-
//@ts-ignore
|
|
265
|
-
message: error?.networkError?.result?.error?.message,
|
|
266
|
-
},
|
|
267
|
-
},
|
|
264
|
+
JSON.stringify(error || {}),
|
|
268
265
|
);
|
|
269
266
|
setGlobalErrorMessage(error);
|
|
270
267
|
history.push('/');
|
|
@@ -303,27 +300,26 @@ const VideoCall: React.FC = () => {
|
|
|
303
300
|
} else if (sdkMeetingPhrase) {
|
|
304
301
|
setQueryComplete(false);
|
|
305
302
|
currentMeetingPhrase.current = sdkMeetingPath;
|
|
306
|
-
useJoin(sdkMeetingPhrase, preference)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
});
|
|
303
|
+
useJoin(sdkMeetingPhrase, preference)
|
|
304
|
+
.then(() => {
|
|
305
|
+
logger.log(
|
|
306
|
+
LogSource.Internals,
|
|
307
|
+
'JOIN_MEETING',
|
|
308
|
+
'Join channel success',
|
|
309
|
+
);
|
|
310
|
+
})
|
|
311
|
+
.catch(error => {
|
|
312
|
+
logger.error(
|
|
313
|
+
LogSource.Internals,
|
|
314
|
+
'JOIN_MEETING',
|
|
315
|
+
'Join channel error',
|
|
316
|
+
JSON.stringify(error || {}),
|
|
317
|
+
);
|
|
318
|
+
setGlobalErrorMessage(error);
|
|
319
|
+
history.push('/');
|
|
320
|
+
currentMeetingPhrase.current = '';
|
|
321
|
+
promise.rej(error);
|
|
322
|
+
});
|
|
327
323
|
}
|
|
328
324
|
}, [SdkJoinState]);
|
|
329
325
|
|
|
@@ -369,15 +369,8 @@ const RecordingProvider = (props: RecordingProviderProps) => {
|
|
|
369
369
|
LogSource.NetworkRest,
|
|
370
370
|
'recording_start',
|
|
371
371
|
'Error while start recording',
|
|
372
|
-
err,
|
|
372
|
+
JSON.stringify(err || {}),
|
|
373
373
|
{
|
|
374
|
-
networkError: {
|
|
375
|
-
name: err?.networkError?.name,
|
|
376
|
-
//@ts-ignore
|
|
377
|
-
code: err?.networkError?.result?.error?.code,
|
|
378
|
-
//@ts-ignore
|
|
379
|
-
message: err?.networkError?.result?.error?.message,
|
|
380
|
-
},
|
|
381
374
|
startReqTs,
|
|
382
375
|
endRequestTs,
|
|
383
376
|
latency,
|
|
@@ -68,15 +68,8 @@ function useRecordingLayoutQuery() {
|
|
|
68
68
|
LogSource.Internals,
|
|
69
69
|
'RECORDING',
|
|
70
70
|
'setPresenterQuery failure',
|
|
71
|
-
error,
|
|
71
|
+
JSON.stringify(error || {}),
|
|
72
72
|
{
|
|
73
|
-
networkError: {
|
|
74
|
-
name: error?.networkError?.name,
|
|
75
|
-
//@ts-ignore
|
|
76
|
-
code: error?.networkError?.result?.error?.code,
|
|
77
|
-
//@ts-ignore
|
|
78
|
-
message: error?.networkError?.result?.error?.message,
|
|
79
|
-
},
|
|
80
73
|
startReqTs,
|
|
81
74
|
endReqTs,
|
|
82
75
|
latency: endReqTs - startReqTs,
|
|
@@ -126,15 +119,8 @@ function useRecordingLayoutQuery() {
|
|
|
126
119
|
LogSource.Internals,
|
|
127
120
|
'RECORDING',
|
|
128
121
|
'executeNormalQuery failure',
|
|
129
|
-
error,
|
|
122
|
+
JSON.stringify(error || {}),
|
|
130
123
|
{
|
|
131
|
-
networkError: {
|
|
132
|
-
name: error?.networkError?.name,
|
|
133
|
-
//@ts-ignore
|
|
134
|
-
code: error?.networkError?.result?.error?.code,
|
|
135
|
-
//@ts-ignore
|
|
136
|
-
message: error?.networkError?.result?.error?.message,
|
|
137
|
-
},
|
|
138
124
|
startReqTs,
|
|
139
125
|
endReqTs,
|
|
140
126
|
latency: endReqTs - startReqTs,
|
|
@@ -79,15 +79,8 @@ export default function useCreateRoom(): createRoomFun {
|
|
|
79
79
|
LogSource.NetworkRest,
|
|
80
80
|
'createChannel',
|
|
81
81
|
'API createChannel failed. There was an error',
|
|
82
|
-
error,
|
|
82
|
+
JSON.stringify(error || {}),
|
|
83
83
|
{
|
|
84
|
-
networkError: {
|
|
85
|
-
name: error?.networkError?.name,
|
|
86
|
-
//@ts-ignore
|
|
87
|
-
code: error?.networkError?.result?.error?.code,
|
|
88
|
-
//@ts-ignore
|
|
89
|
-
message: error?.networkError?.result?.error?.message,
|
|
90
|
-
},
|
|
91
84
|
startReqTs,
|
|
92
85
|
endReqTs,
|
|
93
86
|
latency: latency,
|
|
@@ -56,15 +56,8 @@ export default function useGetMeetingPhrase() {
|
|
|
56
56
|
LogSource.Internals,
|
|
57
57
|
'GET_MEETING_PHRASE',
|
|
58
58
|
'Query GET_MEETING_PHRASE failed',
|
|
59
|
-
response
|
|
59
|
+
JSON.stringify(response?.error || {}),
|
|
60
60
|
{
|
|
61
|
-
networkError: {
|
|
62
|
-
name: response?.error?.networkError?.name,
|
|
63
|
-
//@ts-ignore
|
|
64
|
-
code: response?.error?.networkError?.result?.error?.code,
|
|
65
|
-
//@ts-ignore
|
|
66
|
-
message: response?.error?.networkError?.result?.error?.message,
|
|
67
|
-
},
|
|
68
61
|
requestId,
|
|
69
62
|
startReqTs,
|
|
70
63
|
endReqTs,
|
|
@@ -217,15 +217,8 @@ export default function useJoinRoom() {
|
|
|
217
217
|
isWaitingRoomEnabled ? 'channel_join_request' : 'joinChannel'
|
|
218
218
|
} failed.`,
|
|
219
219
|
'Join Channel Failed',
|
|
220
|
-
response?.error,
|
|
220
|
+
JSON.stringify(response?.error || {}),
|
|
221
221
|
{
|
|
222
|
-
networkError: {
|
|
223
|
-
name: response?.error?.networkError?.name,
|
|
224
|
-
//@ts-ignore
|
|
225
|
-
code: response?.error?.networkError?.result?.error?.code,
|
|
226
|
-
//@ts-ignore
|
|
227
|
-
message: response?.error?.networkError?.result?.error?.message,
|
|
228
|
-
},
|
|
229
222
|
startReqTs,
|
|
230
223
|
endReqTs,
|
|
231
224
|
latency,
|
|
@@ -53,15 +53,8 @@ const useMutePSTN = () => {
|
|
|
53
53
|
LogSource.Internals,
|
|
54
54
|
'MUTE_PSTN',
|
|
55
55
|
'Mutation MUTE_PSTN success',
|
|
56
|
-
error,
|
|
56
|
+
JSON.stringify(error || {}),
|
|
57
57
|
{
|
|
58
|
-
networkError: {
|
|
59
|
-
name: error?.networkError?.name,
|
|
60
|
-
//@ts-ignore
|
|
61
|
-
code: error?.networkError?.result?.error?.code,
|
|
62
|
-
//@ts-ignore
|
|
63
|
-
message: error?.networkError?.result?.error?.message,
|
|
64
|
-
},
|
|
65
58
|
startReqTs,
|
|
66
59
|
endReqTs,
|
|
67
60
|
latency: endReqTs - startReqTs,
|