vani-meeting-client 1.1.3 → 1.1.5
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.
|
@@ -145,16 +145,24 @@ var CommunicationHandler = /** @class */ (function () {
|
|
|
145
145
|
this.emitMessageToSource(VaniEvent.OnParticipantDataUpdated, oldParticipant);
|
|
146
146
|
}
|
|
147
147
|
this.updateParticipantAudioVideoDataAccordingToTrack(oldParticipant);
|
|
148
|
-
|
|
149
|
-
this.meetingStartRequest
|
|
148
|
+
try {
|
|
149
|
+
if (oldParticipant.userId === ((_a = this.meetingStartRequest) === null || _a === void 0 ? void 0 : _a.userId)) {
|
|
150
|
+
this.meetingStartRequest.userData = oldParticipant.userData;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
catch (err) {
|
|
150
154
|
}
|
|
151
155
|
return oldParticipant;
|
|
152
156
|
}
|
|
153
157
|
else {
|
|
154
158
|
participant = Object.assign(new Participant(participant.userId, participant.roomId, participant.userData, participant.isAdmin), participant);
|
|
155
159
|
this.updateParticipantAudioVideoDataAccordingToTrack(participant);
|
|
156
|
-
|
|
157
|
-
this.meetingStartRequest
|
|
160
|
+
try {
|
|
161
|
+
if (participant.userId === ((_b = this.meetingStartRequest) === null || _b === void 0 ? void 0 : _b.userId)) {
|
|
162
|
+
this.meetingStartRequest.userData = participant.userData;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
catch (err) {
|
|
158
166
|
}
|
|
159
167
|
this.allParticipants.push(participant);
|
|
160
168
|
if (shouldInfrom) {
|