agora-appbuilder-core 4.1.4-beta.3 → 4.1.4-beta.4
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
|
@@ -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.4-beta.
|
|
81
|
-
CORE_VERSION: '4.1.4-beta.
|
|
80
|
+
CLI_VERSION: '3.1.4-beta.4',
|
|
81
|
+
CORE_VERSION: '4.1.4-beta.4',
|
|
82
82
|
DISABLE_LANDSCAPE_MODE: false,
|
|
83
83
|
STT_AUTO_START: false,
|
|
84
84
|
CLOUD_RECORDING_AUTO_START: false,
|
|
@@ -399,13 +399,18 @@ const VideoCall: React.FC = () => {
|
|
|
399
399
|
// SdkJoinState.promise?.res();
|
|
400
400
|
// }
|
|
401
401
|
// },
|
|
402
|
-
EndCall:
|
|
402
|
+
EndCall: () => {
|
|
403
403
|
clearState('join');
|
|
404
404
|
setTimeout(() => {
|
|
405
405
|
// TODO: These callbacks are being called twice
|
|
406
406
|
SDKEvents.emit('leave');
|
|
407
|
-
|
|
408
|
-
|
|
407
|
+
if (afterEndCall) {
|
|
408
|
+
afterEndCall(data.isHost, history as unknown as History);
|
|
409
|
+
} else {
|
|
410
|
+
history.push('/');
|
|
411
|
+
}
|
|
412
|
+
// client.resetStore();//https://github.com/apollographql/apollo-client/issues/2919#issuecomment-406311579
|
|
413
|
+
client.cache.reset();
|
|
409
414
|
}, 0);
|
|
410
415
|
},
|
|
411
416
|
UserJoined: (uid: UidType) => {
|
|
@@ -8,6 +8,7 @@ import {useUserPreference} from '../../components/useUserPreference';
|
|
|
8
8
|
import WhiteboardConfigure from '../../components/whiteboard/WhiteboardConfigure';
|
|
9
9
|
import ChatConfigure from '../../components/chat/chatConfigure';
|
|
10
10
|
import {useControlPermissionMatrix} from '../../components/controls/useControlPermissionMatrix';
|
|
11
|
+
import {useContent, useEndCall} from 'customization-api';
|
|
11
12
|
|
|
12
13
|
const VideoCallScreenWithRecordingBot: React.FC = () => {
|
|
13
14
|
const location = useLocation();
|
|
@@ -25,6 +26,15 @@ const VideoCallScreenWrapper: React.FC = () => {
|
|
|
25
26
|
const {rtcProps} = useContext(PropsContext);
|
|
26
27
|
let configComponent: React.ReactNode;
|
|
27
28
|
|
|
29
|
+
const {isUserBaned} = useContent();
|
|
30
|
+
const endCall = useEndCall();
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (isUserBaned) {
|
|
34
|
+
endCall();
|
|
35
|
+
}
|
|
36
|
+
}, [isUserBaned]);
|
|
37
|
+
|
|
28
38
|
const videoComponent = rtcProps?.recordingBot ? (
|
|
29
39
|
<VideoCallScreenWithRecordingBot />
|
|
30
40
|
) : (
|