vani-meeting-client 0.5.8 → 0.6.1
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.
package/lib/MeetingHandler.js
CHANGED
|
@@ -275,7 +275,8 @@ var MeetingHandler = /** @class */ (function () {
|
|
|
275
275
|
var _a;
|
|
276
276
|
var oldParticipant = this.participantByUserId(participant.userId);
|
|
277
277
|
if (oldParticipant) {
|
|
278
|
-
Object.assign(oldParticipant, participant);
|
|
278
|
+
oldParticipant = Object.assign(oldParticipant, participant);
|
|
279
|
+
console.log("updateParticipantData", oldParticipant);
|
|
279
280
|
(_a = this.websocketCallHandler) === null || _a === void 0 ? void 0 : _a.sendSocketMessage(WebSocketBasicEvents.UpdateParticipant, oldParticipant);
|
|
280
281
|
}
|
|
281
282
|
return oldParticipant;
|
|
@@ -366,6 +366,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
|
|
|
366
366
|
this.onSetupDone(data);
|
|
367
367
|
}
|
|
368
368
|
else if (type === WebSocketBasicEvents.OnParticipantUpdated || type === WebSocketBasicEvents.OnNewJoinee) {
|
|
369
|
+
console.log(" data.message.participant OnParticipantUpdated", data);
|
|
369
370
|
if (data && data.message && data.message.participant) {
|
|
370
371
|
console.log("OnParticipantUpdated from server", data.message.participant);
|
|
371
372
|
(_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.addParticipantIfNotExist(data.message.participant, true);
|