stream-chat 9.54.2 → 9.54.3
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.mjs
CHANGED
|
@@ -13856,11 +13856,15 @@ var ChannelManager = class extends WithSubscriptions {
|
|
|
13856
13856
|
sort
|
|
13857
13857
|
});
|
|
13858
13858
|
if (channelsFromDB) {
|
|
13859
|
-
const offlineChannels = this.client.hydrateActiveChannels(
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13859
|
+
const offlineChannels = this.client.hydrateActiveChannels(
|
|
13860
|
+
channelsFromDB,
|
|
13861
|
+
{
|
|
13862
|
+
offlineMode: true,
|
|
13863
|
+
skipInitialization: []
|
|
13864
|
+
// passing empty array will clear out the existing messages from channel state, this removes the possibility of duplicate messages
|
|
13865
|
+
},
|
|
13866
|
+
options
|
|
13867
|
+
);
|
|
13864
13868
|
this.state.partialNext({ channels: offlineChannels });
|
|
13865
13869
|
}
|
|
13866
13870
|
}
|
|
@@ -15301,7 +15305,7 @@ var StreamChat = class _StreamChat {
|
|
|
15301
15305
|
return this.userAgent;
|
|
15302
15306
|
}
|
|
15303
15307
|
if (!this.cachedUserAgent) {
|
|
15304
|
-
const version = "9.54.
|
|
15308
|
+
const version = "9.54.3";
|
|
15305
15309
|
const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
|
|
15306
15310
|
const { name: appName, version: appVersion } = this.appIdentifier ?? {};
|
|
15307
15311
|
const { os, model: deviceModel } = this.deviceIdentifier ?? {};
|