mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed bug if ID is not in the connection data
parent
b5a0ab434a
commit
4d659581b7
|
@ -192,7 +192,10 @@ export class ParticipantService {
|
||||||
connectionId
|
connectionId
|
||||||
};
|
};
|
||||||
|
|
||||||
const participantId = this.getParticipantIdFromData(data);
|
// Avoiding create a new participant if participantId param is not exist in connection data
|
||||||
|
// participant Id is necessary for allowing to have multiple connection in one participant
|
||||||
|
const participantId = this.getParticipantIdFromData(data) || connectionId;
|
||||||
|
|
||||||
const participantAdded = this.getRemoteParticipantById(participantId);
|
const participantAdded = this.getRemoteParticipantById(participantId);
|
||||||
if (!!participantAdded) {
|
if (!!participantAdded) {
|
||||||
this.log.d('Adding connection to existing participant: ', participantId);
|
this.log.d('Adding connection to existing participant: ', participantId);
|
||||||
|
|
Loading…
Reference in New Issue