vani-meeting-client 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,14 +133,18 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
133
133
|
if (shouldInfrom === void 0) { shouldInfrom = false; }
|
|
134
134
|
var oldParticipant = this.participantByUserId(participant.userId);
|
|
135
135
|
if (oldParticipant) {
|
|
136
|
+
console.log("oldParticipant");
|
|
136
137
|
oldParticipant = Object.assign(oldParticipant, participant);
|
|
137
138
|
if (shouldInfrom) {
|
|
138
139
|
this.emitMessageToSource(VaniEvent.OnParticipantDataUpdated, oldParticipant);
|
|
139
140
|
}
|
|
141
|
+
console.log(oldParticipant);
|
|
140
142
|
return oldParticipant;
|
|
141
143
|
}
|
|
142
144
|
else {
|
|
145
|
+
console.log("new participant");
|
|
143
146
|
participant = Object.assign(new Participant(participant.userId, participant.roomId, participant.userData, participant.isAdmin), participant);
|
|
147
|
+
console.log(participant);
|
|
144
148
|
this.allParticipants.push(participant);
|
|
145
149
|
if (shouldInfrom) {
|
|
146
150
|
this.emitMessageToSource(VaniEvent.OnUserJoined, participant);
|