@videosdk.live/react-sdk 0.6.2 → 0.6.3

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.
@@ -456,7 +456,7 @@ var MeetingConsumer = function MeetingConsumer(_ref2) {
456
456
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MeetingProviderContex.Consumer, null, children));
457
457
  };
458
458
 
459
- var version = "0.6.2";
459
+ var version = "0.6.3";
460
460
 
461
461
  var MeetingProvider = function MeetingProvider(_ref) {
462
462
  var children = _ref.children,
@@ -855,6 +855,9 @@ var MeetingProvider = function MeetingProvider(_ref) {
855
855
  };
856
856
  var _handle_meeting_state_changed = function _handle_meeting_state_changed(data) {
857
857
  eventEmitter.emit(events['meeting-state-changed'], data);
858
+ if ((data === null || data === void 0 ? void 0 : data.state) == 'RECONNECTING') {
859
+ setIsMeetingJoined(false);
860
+ }
858
861
  };
859
862
  var _handle_transcription_state_changed = function _handle_transcription_state_changed(data) {
860
863
  setTranscriptionState(data === null || data === void 0 ? void 0 : data.status);
@@ -1884,6 +1887,7 @@ var usePubSub = function usePubSub(topic, _temp) {
1884
1887
  subscribeToPubsub(meeting);
1885
1888
  return function () {
1886
1889
  var _meeting$pubSub2;
1890
+ isSubscribed.current = false;
1887
1891
  meeting === null || meeting === void 0 ? void 0 : (_meeting$pubSub2 = meeting.pubSub) === null || _meeting$pubSub2 === void 0 ? void 0 : _meeting$pubSub2.unsubscribe(topic, _handlePubSub);
1888
1892
  };
1889
1893
  }