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.
- package/dist/cjs/index.browser.js +4 -30
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +4 -30
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +4 -30
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/channel_batch_updater.d.ts +0 -16
- package/dist/types/types.d.ts +1 -3
- package/package.json +1 -1
- package/src/channel_batch_updater.ts +0 -36
- package/src/client.ts +4 -0
- package/src/messageComposer/messageComposer.ts +6 -1
- package/src/types.ts +1 -7
package/dist/esm/index.mjs
CHANGED
|
@@ -302,34 +302,6 @@ var ChannelBatchUpdater = class {
|
|
|
302
302
|
data
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
-
/**
|
|
306
|
-
* addFilterTags - Add filter tags to channels matching the filter
|
|
307
|
-
*
|
|
308
|
-
* @param {UpdateChannelsBatchFilters} filter Filter to select channels
|
|
309
|
-
* @param {string[]} tags Tags to add
|
|
310
|
-
* @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
|
|
311
|
-
*/
|
|
312
|
-
async addFilterTags(filter, tags) {
|
|
313
|
-
return await this.client.updateChannelsBatch({
|
|
314
|
-
operation: "addFilterTags",
|
|
315
|
-
filter,
|
|
316
|
-
filter_tags_update: tags
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* removeFilterTags - Remove filter tags from channels matching the filter
|
|
321
|
-
*
|
|
322
|
-
* @param {UpdateChannelsBatchFilters} filter Filter to select channels
|
|
323
|
-
* @param {string[]} tags Tags to remove
|
|
324
|
-
* @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
|
|
325
|
-
*/
|
|
326
|
-
async removeFilterTags(filter, tags) {
|
|
327
|
-
return await this.client.updateChannelsBatch({
|
|
328
|
-
operation: "removeFilterTags",
|
|
329
|
-
filter,
|
|
330
|
-
filter_tags_update: tags
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
305
|
};
|
|
334
306
|
|
|
335
307
|
// src/client.ts
|
|
@@ -7356,7 +7328,7 @@ var _MessageComposer = class _MessageComposer extends WithSubscriptions {
|
|
|
7356
7328
|
}
|
|
7357
7329
|
get hasSendableData() {
|
|
7358
7330
|
if (this.client.offlineDb) {
|
|
7359
|
-
return !this.
|
|
7331
|
+
return !this.textComposer.textIsEmpty || !!this.attachmentManager.attachments.length || !!this.pollId || !!this.locationComposer.validLocation;
|
|
7360
7332
|
}
|
|
7361
7333
|
return !!(!this.attachmentManager.uploadsInProgressCount && (!this.textComposer.textIsEmpty || this.attachmentManager.successfulUploadsCount > 0) || this.pollId || !!this.locationComposer.validLocation);
|
|
7362
7334
|
}
|
|
@@ -14871,6 +14843,8 @@ var StreamChat = class _StreamChat {
|
|
|
14871
14843
|
`${this.baseURL}/threads`,
|
|
14872
14844
|
requestBody
|
|
14873
14845
|
);
|
|
14846
|
+
const parentMessages = response.threads.map((thread) => thread.parent_message);
|
|
14847
|
+
this.polls.hydratePollCache(parentMessages);
|
|
14874
14848
|
return {
|
|
14875
14849
|
threads: response.threads.map(
|
|
14876
14850
|
(thread) => new Thread({ client: this, threadData: thread })
|
|
@@ -14945,7 +14919,7 @@ var StreamChat = class _StreamChat {
|
|
|
14945
14919
|
if (this.userAgent) {
|
|
14946
14920
|
return this.userAgent;
|
|
14947
14921
|
}
|
|
14948
|
-
const version = "9.
|
|
14922
|
+
const version = "9.36.0";
|
|
14949
14923
|
const clientBundle = "browser-esm";
|
|
14950
14924
|
let userAgentString = "";
|
|
14951
14925
|
if (this.sdkIdentifier) {
|