matrixbirds před 5 roky
rodič
revize
985acee434
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  1. 0
    6
      samples/simpleDemo/components/agora.js

+ 0
- 6
samples/simpleDemo/components/agora.js Zobrazit soubor

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