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