matrixbirds 6 år sedan
förälder
incheckning
985acee434
1 ändrade filer med 0 tillägg och 6 borttagningar
  1. 0
    6
      samples/simpleDemo/components/agora.js

+ 0
- 6
samples/simpleDemo/components/agora.js Visa fil

162
         this.setState({
162
         this.setState({
163
           joinSucceed: true
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
       onAudioVolumeIndication: (data) => {
166
       onAudioVolumeIndication: (data) => {
173
         console.log('[RtcEngine] onAudioVolumeIndication', data);
167
         console.log('[RtcEngine] onAudioVolumeIndication', data);