Browse Source

fix. samples

matrixbirds 5 years ago
parent
commit
985acee434
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      samples/simpleDemo/components/agora.js

+ 0
- 6
samples/simpleDemo/components/agora.js View File

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);