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/package.json
CHANGED
package/src/channel_manager.ts
CHANGED
|
@@ -460,10 +460,14 @@ export class ChannelManager extends WithSubscriptions {
|
|
|
460
460
|
});
|
|
461
461
|
|
|
462
462
|
if (channelsFromDB) {
|
|
463
|
-
const offlineChannels = this.client.hydrateActiveChannels(
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
463
|
+
const offlineChannels = this.client.hydrateActiveChannels(
|
|
464
|
+
channelsFromDB,
|
|
465
|
+
{
|
|
466
|
+
offlineMode: true,
|
|
467
|
+
skipInitialization: [], // passing empty array will clear out the existing messages from channel state, this removes the possibility of duplicate messages
|
|
468
|
+
},
|
|
469
|
+
options,
|
|
470
|
+
);
|
|
467
471
|
|
|
468
472
|
this.state.partialNext({ channels: offlineChannels });
|
|
469
473
|
}
|