stream-chat 9.19.0 → 9.20.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.
@@ -386,6 +386,7 @@ var Campaign = class {
386
386
  segment_ids: this.data?.segment_ids,
387
387
  sender_id: this.data?.sender_id,
388
388
  sender_mode: this.data?.sender_mode,
389
+ sender_visibility: this.data?.sender_visibility,
389
390
  channel_template: this.data?.channel_template,
390
391
  create_channels: this.data?.create_channels,
391
392
  show_channels: this.data?.show_channels,
@@ -9200,9 +9201,6 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
9200
9201
  get config() {
9201
9202
  return this.configState.getLatestValue();
9202
9203
  }
9203
- updateConfig(config) {
9204
- this.configState.partialNext(mergeWith(this.config, config));
9205
- }
9206
9204
  get contextType() {
9207
9205
  return _MessageComposer.evaluateContextType(this.compositionContext);
9208
9206
  }
@@ -9261,6 +9259,9 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
9261
9259
  const draftWasChanged = !!this.lastChange.draftUpdate && this.lastChange.draftUpdate < this.lastChange.stateUpdate;
9262
9260
  return editedMessageWasUpdated || draftWasChanged || composingMessageFromScratch;
9263
9261
  }
9262
+ updateConfig(config) {
9263
+ this.configState.partialNext(mergeWith(this.config, config));
9264
+ }
9264
9265
  logStateUpdateTimestamp() {
9265
9266
  this.editingAuditState.partialNext({
9266
9267
  lastChange: { ...this.lastChange, stateUpdate: (/* @__PURE__ */ new Date()).getTime() }
@@ -10438,6 +10439,11 @@ var Channel = class {
10438
10439
  }
10439
10440
  }
10440
10441
  this.getClient()._addChannelConfig(state.channel);
10442
+ if (typeof state.channel.config?.shared_locations !== "undefined") {
10443
+ this.messageComposer.updateConfig({
10444
+ location: { enabled: state.channel.config.shared_locations }
10445
+ });
10446
+ }
10441
10447
  const { messageSet } = this._initializeState(state, messageSetToAddToIfDoesNotExist);
10442
10448
  messageSet.pagination = {
10443
10449
  ...messageSet.pagination,
@@ -16220,7 +16226,7 @@ var StreamChat = class _StreamChat {
16220
16226
  if (this.userAgent) {
16221
16227
  return this.userAgent;
16222
16228
  }
16223
- const version = "9.19.0";
16229
+ const version = "9.20.0";
16224
16230
  const clientBundle = "browser-cjs";
16225
16231
  let userAgentString = "";
16226
16232
  if (this.sdkIdentifier) {