stream-chat 9.35.0 → 9.36.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.
@@ -491,34 +491,6 @@ var ChannelBatchUpdater = class {
491
491
  data
492
492
  });
493
493
  }
494
- /**
495
- * addFilterTags - Add filter tags to channels matching the filter
496
- *
497
- * @param {UpdateChannelsBatchFilters} filter Filter to select channels
498
- * @param {string[]} tags Tags to add
499
- * @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
500
- */
501
- async addFilterTags(filter, tags) {
502
- return await this.client.updateChannelsBatch({
503
- operation: "addFilterTags",
504
- filter,
505
- filter_tags_update: tags
506
- });
507
- }
508
- /**
509
- * removeFilterTags - Remove filter tags from channels matching the filter
510
- *
511
- * @param {UpdateChannelsBatchFilters} filter Filter to select channels
512
- * @param {string[]} tags Tags to remove
513
- * @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
514
- */
515
- async removeFilterTags(filter, tags) {
516
- return await this.client.updateChannelsBatch({
517
- operation: "removeFilterTags",
518
- filter,
519
- filter_tags_update: tags
520
- });
521
- }
522
494
  };
523
495
 
524
496
  // src/client.ts
@@ -7545,7 +7517,7 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
7545
7517
  }
7546
7518
  get hasSendableData() {
7547
7519
  if (this.client.offlineDb) {
7548
- return !this.compositionIsEmpty;
7520
+ return !this.textComposer.textIsEmpty || !!this.attachmentManager.attachments.length || !!this.pollId || !!this.locationComposer.validLocation;
7549
7521
  }
7550
7522
  return !!(!this.attachmentManager.uploadsInProgressCount && (!this.textComposer.textIsEmpty || this.attachmentManager.successfulUploadsCount > 0) || this.pollId || !!this.locationComposer.validLocation);
7551
7523
  }
@@ -15060,6 +15032,8 @@ var StreamChat = class _StreamChat {
15060
15032
  `${this.baseURL}/threads`,
15061
15033
  requestBody
15062
15034
  );
15035
+ const parentMessages = response.threads.map((thread) => thread.parent_message);
15036
+ this.polls.hydratePollCache(parentMessages);
15063
15037
  return {
15064
15038
  threads: response.threads.map(
15065
15039
  (thread) => new Thread({ client: this, threadData: thread })
@@ -15134,7 +15108,7 @@ var StreamChat = class _StreamChat {
15134
15108
  if (this.userAgent) {
15135
15109
  return this.userAgent;
15136
15110
  }
15137
- const version = "9.35.0";
15111
+ const version = "9.36.0";
15138
15112
  const clientBundle = "browser-cjs";
15139
15113
  let userAgentString = "";
15140
15114
  if (this.sdkIdentifier) {