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.
|
@@ -14079,11 +14079,15 @@ var ChannelManager = class extends WithSubscriptions {
|
|
|
14079
14079
|
sort
|
|
14080
14080
|
});
|
|
14081
14081
|
if (channelsFromDB) {
|
|
14082
|
-
const offlineChannels = this.client.hydrateActiveChannels(
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14086
|
-
|
|
14082
|
+
const offlineChannels = this.client.hydrateActiveChannels(
|
|
14083
|
+
channelsFromDB,
|
|
14084
|
+
{
|
|
14085
|
+
offlineMode: true,
|
|
14086
|
+
skipInitialization: []
|
|
14087
|
+
// passing empty array will clear out the existing messages from channel state, this removes the possibility of duplicate messages
|
|
14088
|
+
},
|
|
14089
|
+
options
|
|
14090
|
+
);
|
|
14087
14091
|
this.state.partialNext({ channels: offlineChannels });
|
|
14088
14092
|
}
|
|
14089
14093
|
}
|
|
@@ -15524,7 +15528,7 @@ var StreamChat = class _StreamChat {
|
|
|
15524
15528
|
return this.userAgent;
|
|
15525
15529
|
}
|
|
15526
15530
|
if (!this.cachedUserAgent) {
|
|
15527
|
-
const version = "9.54.
|
|
15531
|
+
const version = "9.54.3";
|
|
15528
15532
|
const { name: sdkName, version: sdkVersion } = this.sdkIdentifier ?? {};
|
|
15529
15533
|
const { name: appName, version: appVersion } = this.appIdentifier ?? {};
|
|
15530
15534
|
const { os, model: deviceModel } = this.deviceIdentifier ?? {};
|