stream-chat 9.50.0 → 9.50.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.
@@ -12638,6 +12638,7 @@ var DEFAULT_CONNECTION_RECOVERY_THROTTLE_DURATION = 1e3;
12638
12638
  var MAX_QUERY_THREADS_LIMIT = 25;
12639
12639
  var THREAD_MANAGER_INITIAL_STATE = {
12640
12640
  active: false,
12641
+ wasActivatedAtLeastOnce: false,
12641
12642
  isThreadOrderStale: false,
12642
12643
  threads: [],
12643
12644
  unreadThreadCount: 0,
@@ -12660,7 +12661,7 @@ var ThreadManager = class extends WithSubscriptions {
12660
12661
  this.state.next(THREAD_MANAGER_INITIAL_STATE);
12661
12662
  };
12662
12663
  this.activate = () => {
12663
- this.state.partialNext({ active: true });
12664
+ this.state.partialNext({ active: true, wasActivatedAtLeastOnce: true });
12664
12665
  };
12665
12666
  this.deactivate = () => {
12666
12667
  this.state.partialNext({ active: false });
@@ -12740,8 +12741,8 @@ var ThreadManager = class extends WithSubscriptions {
12740
12741
  }).unsubscribe;
12741
12742
  const throttledHandleConnectionRecovered = throttle(
12742
12743
  () => {
12743
- const { lastConnectionDropAt } = this.state.getLatestValue();
12744
- if (!lastConnectionDropAt) return;
12744
+ const { lastConnectionDropAt, wasActivatedAtLeastOnce } = this.state.getLatestValue();
12745
+ if (!lastConnectionDropAt || !wasActivatedAtLeastOnce) return;
12745
12746
  this.reload({ force: true });
12746
12747
  },
12747
12748
  DEFAULT_CONNECTION_RECOVERY_THROTTLE_DURATION,
@@ -14873,7 +14874,7 @@ var StreamChat = class _StreamChat {
14873
14874
  return this.userAgent;
14874
14875
  }
14875
14876
  if (!this.cachedUserAgent) {
14876
- const version = "9.50.0";
14877
+ const version = "9.50.1";
14877
14878
  const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
14878
14879
  const { name: appName, version: appVersion } = this.appIdentifier ?? {};
14879
14880
  const { os, model: deviceModel } = this.deviceIdentifier ?? {};