stream-chat 9.19.0 → 9.19.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.
@@ -21720,9 +21720,6 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
21720
21720
  get config() {
21721
21721
  return this.configState.getLatestValue();
21722
21722
  }
21723
- updateConfig(config) {
21724
- this.configState.partialNext(mergeWith(this.config, config));
21725
- }
21726
21723
  get contextType() {
21727
21724
  return _MessageComposer.evaluateContextType(this.compositionContext);
21728
21725
  }
@@ -21781,6 +21778,9 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
21781
21778
  const draftWasChanged = !!this.lastChange.draftUpdate && this.lastChange.draftUpdate < this.lastChange.stateUpdate;
21782
21779
  return editedMessageWasUpdated || draftWasChanged || composingMessageFromScratch;
21783
21780
  }
21781
+ updateConfig(config) {
21782
+ this.configState.partialNext(mergeWith(this.config, config));
21783
+ }
21784
21784
  logStateUpdateTimestamp() {
21785
21785
  this.editingAuditState.partialNext({
21786
21786
  lastChange: { ...this.lastChange, stateUpdate: (/* @__PURE__ */ new Date()).getTime() }
@@ -22958,6 +22958,11 @@ var Channel = class {
22958
22958
  }
22959
22959
  }
22960
22960
  this.getClient()._addChannelConfig(state.channel);
22961
+ if (typeof state.channel.config?.shared_locations !== "undefined") {
22962
+ this.messageComposer.updateConfig({
22963
+ location: { enabled: state.channel.config.shared_locations }
22964
+ });
22965
+ }
22961
22966
  const { messageSet } = this._initializeState(state, messageSetToAddToIfDoesNotExist);
22962
22967
  messageSet.pagination = {
22963
22968
  ...messageSet.pagination,
@@ -28728,7 +28733,7 @@ var StreamChat = class _StreamChat {
28728
28733
  if (this.userAgent) {
28729
28734
  return this.userAgent;
28730
28735
  }
28731
- const version = "9.19.0";
28736
+ const version = "9.19.1";
28732
28737
  const clientBundle = "node-cjs";
28733
28738
  let userAgentString = "";
28734
28739
  if (this.sdkIdentifier) {