stream-chat-angular 4.23.1 → 4.23.2

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.
@@ -19,7 +19,7 @@ import transliterate from '@stream-io/transliterate';
19
19
  import * as i8$1 from 'angular-mentions';
20
20
  import { MentionModule } from 'angular-mentions';
21
21
 
22
- const version = '4.23.1';
22
+ const version = '4.23.2';
23
23
 
24
24
  /**
25
25
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -1213,14 +1213,17 @@ class ChannelService {
1213
1213
  }
1214
1214
  }
1215
1215
  handleChannelUpdate(event) {
1216
- var _a, _b;
1216
+ var _a, _b, _c, _d;
1217
1217
  const channelIndex = this.channels.findIndex((c) => c.cid === event.channel.cid);
1218
1218
  if (channelIndex !== -1) {
1219
- this.channels[channelIndex].data = event.channel;
1219
+ const channel = this.channels[channelIndex];
1220
+ const notIncludedProperies = {
1221
+ hidden: ((_a = channel.data) === null || _a === void 0 ? void 0 : _a.hidden) || false,
1222
+ own_capabilities: ((_b = channel.data) === null || _b === void 0 ? void 0 : _b.own_capabilities) || [],
1223
+ };
1224
+ channel.data = Object.assign(Object.assign({}, event.channel), notIncludedProperies);
1220
1225
  this.channelsSubject.next([...this.channels]);
1221
- if (((_a = event.channel) === null || _a === void 0 ? void 0 : _a.cid) === ((_b = this.activeChannelSubject.getValue()) === null || _b === void 0 ? void 0 : _b.cid)) {
1222
- const channel = this.activeChannelSubject.getValue();
1223
- channel.data = event.channel;
1226
+ if (((_c = event.channel) === null || _c === void 0 ? void 0 : _c.cid) === ((_d = this.activeChannelSubject.getValue()) === null || _d === void 0 ? void 0 : _d.cid)) {
1224
1227
  this.activeChannelSubject.next(channel);
1225
1228
  }
1226
1229
  }