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