fix: 增加会话前先关闭机器人

master
xjs 2025-04-08 12:02:17 +08:00
parent e8fb5a28cd
commit 87629309dd
1 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,8 @@ export const useJoin = (): [
const listeners = useRtcListeners();
const handleAIGCModeStart = async () => {
await RtcClient.stopAudioBot();
if (room.isAIGCEnable) {
await RtcClient.stopAudioBot();
dispatch(clearCurrentMsg());