vani-meeting-client 0.5.7 → 0.6.0

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;
@@ -366,7 +366,9 @@ 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.message.participant);
369
370
  if (data && data.message && data.message.participant) {
371
+ console.log("OnParticipantUpdated from server", data.message.participant);
370
372
  (_b = this.communicationHandler) === null || _b === void 0 ? void 0 : _b.addParticipantIfNotExist(data.message.participant, true);
371
373
  }
372
374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vani-meeting-client",
3
- "version": "0.5.7",
3
+ "version": "0.6.0",
4
4
  "description": "Vani Meeting Clinet SDK",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",