stream-chat 9.10.0 → 9.11.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.
@@ -4807,6 +4807,9 @@ var AttachmentManager = class {
4807
4807
  if (isFileReference(fileLike) && fileLike.thumb_url) {
4808
4808
  localAttachment.thumb_url = fileLike.thumb_url;
4809
4809
  }
4810
+ if (isFileReference(fileLike) && fileLike.duration) {
4811
+ localAttachment.duration = fileLike.duration;
4812
+ }
4810
4813
  return localAttachment;
4811
4814
  };
4812
4815
  this.ensureLocalUploadAttachment = async (attachment) => {
@@ -6002,8 +6005,7 @@ var createCompositionValidationMiddleware = (composer) => ({
6002
6005
  const inputText = state.message.text ?? "";
6003
6006
  const isEmptyMessage = textIsEmpty(inputText) && !state.message.attachments?.length && !state.message.poll_id;
6004
6007
  const hasExceededMaxLength = typeof maxLengthOnSend === "number" && inputText.length > maxLengthOnSend;
6005
- const editedMessageIsUnchanged = composer.editedMessage && !composer.lastChangeOriginIsLocal;
6006
- if (isEmptyMessage || editedMessageIsUnchanged || hasExceededMaxLength) {
6008
+ if (isEmptyMessage || hasExceededMaxLength) {
6007
6009
  return await discard();
6008
6010
  }
6009
6011
  return await forward();
@@ -15561,7 +15563,7 @@ var StreamChat = class _StreamChat {
15561
15563
  if (this.userAgent) {
15562
15564
  return this.userAgent;
15563
15565
  }
15564
- const version = "9.10.0";
15566
+ const version = "9.11.0";
15565
15567
  const clientBundle = "browser-cjs";
15566
15568
  let userAgentString = "";
15567
15569
  if (this.sdkIdentifier) {
@@ -16645,7 +16647,7 @@ var StreamChat = class _StreamChat {
16645
16647
  */
16646
16648
  async queryReminders({ filter: filter2, sort, ...rest } = {}) {
16647
16649
  return await this.post(`${this.baseURL}/reminders/query`, {
16648
- filter_conditions: filter2,
16650
+ filter: filter2,
16649
16651
  sort: sort && normalizeQuerySort(sort),
16650
16652
  ...rest
16651
16653
  });