From 4f023da7d769a3253235070bfd4b4275dc99329d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Tue, 16 Jul 2024 14:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index d575fed..5cbaf20 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -144,10 +144,12 @@ const Meeting: React.FC = () => { useEffect(() => { roomUserList.forEach((item: any) => { - const footerListTemplate = [...footerList] - footerListTemplate[0][0].title = item.enableMicr ? '关闭声音' : '开启声音' - footerListTemplate[0][0].active = !item.enableMicr - setFooterList(footerListTemplate) + if (item.account === user.account) { + const footerListTemplate = [...footerList] + footerListTemplate[0][0].title = item.enableMicr ? '关闭声音' : '开启声音' + footerListTemplate[0][0].active = !item.enableMicr + setFooterList(footerListTemplate) + } agora.muteLocalAudioStream(!item.enableMicr) agora.muteLocalVideoStream(!item.enableCamera) let dom = document.getElementById(`video-${item.account}`) as HTMLElement