stream-chat-angular 4.5.0 → 4.5.1

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.
@@ -1 +1 @@
1
- export declare const version = "4.5.0";
1
+ export declare const version = "4.5.1";
@@ -355,7 +355,7 @@
355
355
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
356
356
  }
357
357
 
358
- var version = '4.5.0';
358
+ var version = '4.5.1';
359
359
 
360
360
  /**
361
361
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -1551,8 +1551,13 @@
1551
1551
  });
1552
1552
  };
1553
1553
  ChannelService.prototype.removeChannelsFromChannelList = function (cids) {
1554
+ var _this = this;
1554
1555
  var _a;
1555
1556
  var channels = this.channels.filter(function (c) { return !cids.includes(c.cid || ''); });
1557
+ cids.forEach(function (cid) {
1558
+ var _a;
1559
+ return void ((_a = _this.chatClientService.chatClient.activeChannels[cid]) === null || _a === void 0 ? void 0 : _a.stopWatching());
1560
+ });
1556
1561
  if (channels.length < this.channels.length) {
1557
1562
  this.channelsSubject.next(channels);
1558
1563
  if (cids.includes(((_a = this.activeChannelSubject.getValue()) === null || _a === void 0 ? void 0 : _a.cid) || '')) {