stream-chat 9.19.1 → 9.20.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.
package/dist/esm/index.js CHANGED
@@ -213,6 +213,7 @@ var Campaign = class {
213
213
  segment_ids: this.data?.segment_ids,
214
214
  sender_id: this.data?.sender_id,
215
215
  sender_mode: this.data?.sender_mode,
216
+ sender_visibility: this.data?.sender_visibility,
216
217
  channel_template: this.data?.channel_template,
217
218
  create_channels: this.data?.create_channels,
218
219
  show_channels: this.data?.show_channels,
@@ -7154,6 +7155,9 @@ var createAttachmentsCompositionMiddleware = (composer) => ({
7154
7155
  origin: {
7155
7156
  emitter: "MessageComposer",
7156
7157
  context: { composer }
7158
+ },
7159
+ options: {
7160
+ type: "validation:attachment:upload:in-progress"
7157
7161
  }
7158
7162
  });
7159
7163
  return discard();
@@ -15120,7 +15124,9 @@ var StreamChat = class _StreamChat {
15120
15124
  this.activeChannels = {};
15121
15125
  this.state = new ClientState({ client: this });
15122
15126
  this.threads.resetState();
15123
- setTimeout(this.tokenManager.reset);
15127
+ closePromise.finally(() => {
15128
+ this.tokenManager.reset();
15129
+ }).catch((err) => console.error(err));
15124
15130
  return closePromise;
15125
15131
  };
15126
15132
  /**
@@ -17175,7 +17181,7 @@ var StreamChat = class _StreamChat {
17175
17181
  if (this.userAgent) {
17176
17182
  return this.userAgent;
17177
17183
  }
17178
- const version = "9.19.1";
17184
+ const version = "9.20.1";
17179
17185
  const clientBundle = "browser-esm";
17180
17186
  let userAgentString = "";
17181
17187
  if (this.sdkIdentifier) {