소스 검색

fix. samples

matrixbirds 5 년 전
부모
커밋
985acee434
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0
    6
      samples/simpleDemo/components/agora.js

+ 0
- 6
samples/simpleDemo/components/agora.js 파일 보기

@@ -162,12 +162,6 @@ export default class AgoraComponent extends Component<Props> {
162 162
         this.setState({
163 163
           joinSucceed: true
164 164
         })
165
-        const {peerIds} = this.state;
166
-        if (peerIds.indexOf(data.uid) === -1) {
167
-          this.setState({
168
-            peerIds: [...peerIds, data.uid]
169
-          })
170
-        }
171 165
       },
172 166
       onAudioVolumeIndication: (data) => {
173 167
         console.log('[RtcEngine] onAudioVolumeIndication', data);