vani-meeting-client 0.5.6 → 0.5.9

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.
@@ -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;
@@ -134,7 +134,10 @@ var CommunicationHandler = /** @class */ (function () {
134
134
  if (shouldInfrom === void 0) { shouldInfrom = false; }
135
135
  var oldParticipant = this.participantByUserId(participant.userId);
136
136
  if (oldParticipant) {
137
+ console.log("Old participant", oldParticipant);
138
+ console.log("new participant", participant);
137
139
  oldParticipant = Object.assign(oldParticipant, participant);
140
+ console.log("Old participant after update", oldParticipant);
138
141
  if (shouldInfrom) {
139
142
  this.emitMessageToSource(VaniEvent.OnParticipantDataUpdated, oldParticipant);
140
143
  }
@@ -367,6 +367,7 @@ var WebsocketHandler = /** @class */ (function (_super) {
367
367
  }
368
368
  else if (type === WebSocketBasicEvents.OnParticipantUpdated || type === WebSocketBasicEvents.OnNewJoinee) {
369
369
  if (data && data.message && data.message.participant) {
370
+ console.log("OnParticipantUpdated from server", data.message.participant);
370
371
  (_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.addParticipantIfNotExist(data.message.participant, true);
371
372
  }
372
373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.5.6",
3
+ "version": "0.5.9",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",