@videosdk.live/react-sdk 0.1.81 → 0.1.82

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/dist/index.js CHANGED
@@ -300,7 +300,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
300
300
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MeetingProviderContex.Consumer, null, children));
301
301
  };
302
302
 
303
- var version = "0.1.81";
303
+ var version = "0.1.82";
304
304
 
305
305
  var MeetingProvider = function MeetingProvider(_ref) {
306
306
  var children = _ref.children,
@@ -656,7 +656,8 @@ var MeetingProvider = function MeetingProvider(_ref) {
656
656
  var part = participants.get(data.participantId);
657
657
  part.mode = data.mode;
658
658
  participants.set(part.id, part);
659
- return participants;
659
+ var participantsToSet = new Map(participants);
660
+ return participantsToSet;
660
661
  });
661
662
  if (data.participantId === (meetingRef === null || meetingRef === void 0 ? void 0 : (_meetingRef$current2 = meetingRef.current) === null || _meetingRef$current2 === void 0 ? void 0 : (_meetingRef$current2$ = _meetingRef$current2.localParticipant) === null || _meetingRef$current2$ === void 0 ? void 0 : _meetingRef$current2$.id)) {
662
663
  setLocalParticipant(function (participant) {