stream-chat 8.40.6 → 8.40.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat",
3
- "version": "8.40.6",
3
+ "version": "8.40.7",
4
4
  "description": "JS SDK for the Stream Chat API",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
package/src/client.ts CHANGED
@@ -1971,8 +1971,8 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
1971
1971
  if (cid in this.activeChannels && !this.activeChannels[cid].disconnected) {
1972
1972
  const channel = this.activeChannels[cid];
1973
1973
  if (Object.keys(custom).length > 0) {
1974
- channel.data = custom;
1975
- channel._data = custom;
1974
+ channel.data = { ...channel.data, ...custom };
1975
+ channel._data = { ...channel._data, ...custom };
1976
1976
  }
1977
1977
  return channel;
1978
1978
  }