stream-chat 9.36.0 → 9.36.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/cjs/index.browser.js +7 -2
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +7 -2
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +7 -2
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/client.d.ts +5 -0
- package/package.json +1 -1
- package/src/channel_state.ts +6 -1
- package/src/client.ts +5 -0
package/dist/cjs/index.node.js
CHANGED
|
@@ -1504,7 +1504,7 @@ var ChannelState = class {
|
|
|
1504
1504
|
if (message.user && this._channel?.cid) {
|
|
1505
1505
|
this._channel.getClient().state.updateUserReference(message.user, this._channel.cid);
|
|
1506
1506
|
}
|
|
1507
|
-
if (initializing && message.id && this.threads[message.id]) {
|
|
1507
|
+
if (initializing && message.id && this.threads[message.id] && !this._channel.getClient().preventThreadCleanup) {
|
|
1508
1508
|
delete this.threads[message.id];
|
|
1509
1509
|
}
|
|
1510
1510
|
const shouldSkipLastMessageAtUpdate = this._channel.getConfig()?.skip_last_msg_update_for_system_msgs && message.type === "system";
|
|
@@ -12729,6 +12729,11 @@ function isString2(x) {
|
|
|
12729
12729
|
}
|
|
12730
12730
|
var StreamChat = class _StreamChat {
|
|
12731
12731
|
constructor(key, secretOrOptions, options) {
|
|
12732
|
+
/**
|
|
12733
|
+
* If true, we will not clean up threads when channel state is in initializing state.
|
|
12734
|
+
* The main use case for SDKs who do independent state recovery for channels.
|
|
12735
|
+
*/
|
|
12736
|
+
this.preventThreadCleanup = false;
|
|
12732
12737
|
this.nextRequestAbortController = null;
|
|
12733
12738
|
/**
|
|
12734
12739
|
* @private
|
|
@@ -15087,7 +15092,7 @@ var StreamChat = class _StreamChat {
|
|
|
15087
15092
|
if (this.userAgent) {
|
|
15088
15093
|
return this.userAgent;
|
|
15089
15094
|
}
|
|
15090
|
-
const version = "9.36.
|
|
15095
|
+
const version = "9.36.1";
|
|
15091
15096
|
const clientBundle = "node-cjs";
|
|
15092
15097
|
let userAgentString = "";
|
|
15093
15098
|
if (this.sdkIdentifier) {
|