fix: 增加会话前先关闭机器人
parent
e8fb5a28cd
commit
87629309dd
|
|
@ -70,6 +70,8 @@ export const useJoin = (): [
|
||||||
const listeners = useRtcListeners();
|
const listeners = useRtcListeners();
|
||||||
|
|
||||||
const handleAIGCModeStart = async () => {
|
const handleAIGCModeStart = async () => {
|
||||||
|
|
||||||
|
await RtcClient.stopAudioBot();
|
||||||
if (room.isAIGCEnable) {
|
if (room.isAIGCEnable) {
|
||||||
await RtcClient.stopAudioBot();
|
await RtcClient.stopAudioBot();
|
||||||
dispatch(clearCurrentMsg());
|
dispatch(clearCurrentMsg());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue