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/cjs/index.node.js
CHANGED
|
@@ -14048,11 +14048,15 @@ var ChannelManager = class extends WithSubscriptions {
|
|
|
14048
14048
|
sort
|
|
14049
14049
|
});
|
|
14050
14050
|
if (channelsFromDB) {
|
|
14051
|
-
const offlineChannels = this.client.hydrateActiveChannels(
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14051
|
+
const offlineChannels = this.client.hydrateActiveChannels(
|
|
14052
|
+
channelsFromDB,
|
|
14053
|
+
{
|
|
14054
|
+
offlineMode: true,
|
|
14055
|
+
skipInitialization: []
|
|
14056
|
+
// passing empty array will clear out the existing messages from channel state, this removes the possibility of duplicate messages
|
|
14057
|
+
},
|
|
14058
|
+
options
|
|
14059
|
+
);
|
|
14056
14060
|
this.state.partialNext({ channels: offlineChannels });
|
|
14057
14061
|
}
|
|
14058
14062
|
}
|
|
@@ -15493,7 +15497,7 @@ var StreamChat = class _StreamChat {
|
|
|
15493
15497
|
return this.userAgent;
|
|
15494
15498
|
}
|
|
15495
15499
|
if (!this.cachedUserAgent) {
|
|
15496
|
-
const version = "9.54.
|
|
15500
|
+
const version = "9.54.3";
|
|
15497
15501
|
const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
|
|
15498
15502
|
const { name: appName, version: appVersion } = this.appIdentifier ?? {};
|
|
15499
15503
|
const { os, model: deviceModel } = this.deviceIdentifier ?? {};
|